import { SERVER } from './actionsTypes';
export function selectServerRequest(server, version, fetchVersion = true, changeServer = false) {
return {
type: SERVER.SELECT_REQUEST,
server,
version,
fetchVersion,
changeServer
};
}
export function selectServerSuccess(server, version) {
type: SERVER.SELECT_SUCCESS,
version
export function selectServerFailure() {
type: SERVER.SELECT_FAILURE
export function serverRequest(server, username = null, fromServerHistory = false) {
type: SERVER.REQUEST,
username,
fromServerHistory
export function serverSuccess() {
type: SERVER.SUCCESS
export function serverFailure(err) {
type: SERVER.FAILURE,
err
export function serverInitAdd(previousServer) {
type: SERVER.INIT_ADD,
previousServer
export function serverFinishAdd() {
type: SERVER.FINISH_ADD