webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js in foreman_ansible-6.2.0 vs webpack/components/AnsibleRolesSwitcher/AnsibleRolesSwitcherActions.js in foreman_ansible-6.3.0
- old
+ new
@@ -8,10 +8,11 @@
ANSIBLE_ROLES_REQUEST,
ANSIBLE_ROLES_SUCCESS,
ANSIBLE_ROLES_FAILURE,
ANSIBLE_ROLES_ADD,
ANSIBLE_ROLES_REMOVE,
+ ANSIBLE_ROLES_MOVE,
ANSIBLE_ROLES_ASSIGNED_PAGE_CHANGE,
} from './AnsibleRolesSwitcherConstants';
export const getAnsibleRoles = (
url,
@@ -59,9 +60,14 @@
});
export const removeAnsibleRole = role => ({
type: ANSIBLE_ROLES_REMOVE,
payload: { role },
+});
+
+export const moveAnsibleRole = roles => ({
+ type: ANSIBLE_ROLES_MOVE,
+ payload: { roles },
});
export const changeAssignedPage = pagination => ({
type: ANSIBLE_ROLES_ASSIGNED_PAGE_CHANGE,
payload: { pagination },