2017-08-18 21:30:16 +00:00
|
|
|
import { SERVER } from './actionsTypes';
|
|
|
|
|
2018-08-01 19:35:06 +00:00
|
|
|
export function selectServerRequest(server) {
|
2017-08-18 21:30:16 +00:00
|
|
|
return {
|
2018-08-01 19:35:06 +00:00
|
|
|
type: SERVER.SELECT_REQUEST,
|
2017-08-18 21:30:16 +00:00
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
2018-08-01 19:35:06 +00:00
|
|
|
|
|
|
|
export function selectServerSuccess(server) {
|
|
|
|
return {
|
|
|
|
type: SERVER.SELECT_SUCCESS,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-09-01 19:42:50 +00:00
|
|
|
export function serverRequest(server) {
|
|
|
|
return {
|
|
|
|
type: SERVER.REQUEST,
|
|
|
|
server
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serverSuccess() {
|
|
|
|
return {
|
|
|
|
type: SERVER.SUCCESS
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serverFailure(err) {
|
|
|
|
return {
|
|
|
|
type: SERVER.FAILURE,
|
|
|
|
err
|
|
|
|
};
|
|
|
|
}
|
2018-08-31 18:13:30 +00:00
|
|
|
|
|
|
|
export function serverInitAdd() {
|
|
|
|
return {
|
|
|
|
type: SERVER.INIT_ADD
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function serverFinishAdd() {
|
|
|
|
return {
|
|
|
|
type: SERVER.FINISH_ADD
|
|
|
|
};
|
|
|
|
}
|