2017-08-18 21:30:16 +00:00
|
|
|
import { SERVER } from './actionsTypes';
|
|
|
|
|
2018-07-10 13:40:32 +00:00
|
|
|
export function selectServer(server) {
|
2017-08-18 21:30:16 +00:00
|
|
|
return {
|
|
|
|
type: SERVER.SELECT,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
2017-09-01 19:42:50 +00:00
|
|
|
export function serverRequest(server) {
|
|
|
|
return {
|
|
|
|
type: SERVER.REQUEST,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function addServer(server) {
|
|
|
|
return {
|
|
|
|
type: SERVER.ADD,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
export function serverSuccess() {
|
|
|
|
return {
|
|
|
|
type: SERVER.SUCCESS
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serverFailure(err) {
|
|
|
|
return {
|
|
|
|
type: SERVER.FAILURE,
|
|
|
|
err
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
|
2017-08-18 21:30:16 +00:00
|
|
|
export function changedServer(server) {
|
|
|
|
return {
|
|
|
|
type: SERVER.CHANGED,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|