2017-08-18 21:30:16 +00:00
|
|
|
import { SERVER } from './actionsTypes';
|
|
|
|
|
|
|
|
export function setServer(server) {
|
|
|
|
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
|
|
|
|
};
|
|
|
|
}
|