2017-08-17 02:06:22 +00:00
|
|
|
import * as types from './actionsTypes';
|
|
|
|
|
2017-11-20 22:18:00 +00:00
|
|
|
|
2020-02-19 19:43:47 +00:00
|
|
|
export function roomsRequest(params = { allData: false }) {
|
2017-08-17 02:06:22 +00:00
|
|
|
return {
|
2020-02-19 19:43:47 +00:00
|
|
|
type: types.ROOMS.REQUEST,
|
|
|
|
params
|
2017-08-17 02:06:22 +00:00
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function roomsSuccess() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.SUCCESS
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-08-17 06:28:41 +00:00
|
|
|
export function roomsFailure(err) {
|
2017-08-17 02:06:22 +00:00
|
|
|
return {
|
|
|
|
type: types.ROOMS.FAILURE,
|
|
|
|
err
|
|
|
|
};
|
|
|
|
}
|
2017-12-08 19:13:21 +00:00
|
|
|
|
2020-02-19 19:43:47 +00:00
|
|
|
export function roomsRefresh() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.REFRESH
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
2017-12-08 19:13:21 +00:00
|
|
|
export function setSearch(searchText) {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.SET_SEARCH,
|
|
|
|
searchText
|
|
|
|
};
|
|
|
|
}
|
2018-08-31 16:46:33 +00:00
|
|
|
|
|
|
|
export function closeServerDropdown() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.CLOSE_SERVER_DROPDOWN
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function toggleServerDropdown() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.TOGGLE_SERVER_DROPDOWN
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function closeSortDropdown() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.CLOSE_SORT_DROPDOWN
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function toggleSortDropdown() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.TOGGLE_SORT_DROPDOWN
|
|
|
|
};
|
|
|
|
}
|
2018-10-23 21:39:48 +00:00
|
|
|
|
|
|
|
export function openSearchHeader() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.OPEN_SEARCH_HEADER
|
|
|
|
};
|
|
|
|
}
|
|
|
|
|
|
|
|
export function closeSearchHeader() {
|
|
|
|
return {
|
|
|
|
type: types.ROOMS.CLOSE_SEARCH_HEADER
|
|
|
|
};
|
|
|
|
}
|