diff --git a/src/components/GroupActionsPopover.vue b/src/components/GroupActionsPopover.vue new file mode 100644 index 0000000..ef7cff4 --- /dev/null +++ b/src/components/GroupActionsPopover.vue @@ -0,0 +1,62 @@ + + + \ No newline at end of file diff --git a/src/store/modules/orderRouting/actions.ts b/src/store/modules/orderRouting/actions.ts index 67f6f17..9f3c95a 100644 --- a/src/store/modules/orderRouting/actions.ts +++ b/src/store/modules/orderRouting/actions.ts @@ -398,6 +398,14 @@ const actions: ActionTree = { async clearRules({ commit }) { commit(types.ORDER_ROUTING_RULES_UPDATED, {}) + }, + + async updateGroupStatus({ commit, state }, payload) { + const routingGroups = JSON.parse(JSON.stringify(state.groups)) + const routingGroup = routingGroups.find((routingGroup: any) => routingGroup.routingGroupId === payload.routingGroupId) + routingGroup["schedule"]["paused"] = payload.value + commit(types.ORDER_ROUTING_GROUPS_UPDATED, routingGroups) + return routingGroups } } diff --git a/src/views/BrokeringRuns.vue b/src/views/BrokeringRuns.vue index 6b7d62b..4b3ced7 100644 --- a/src/views/BrokeringRuns.vue +++ b/src/views/BrokeringRuns.vue @@ -63,6 +63,9 @@ {{ `Updated at ${getDateAndTime(group.lastUpdatedStamp)}` }} + + + @@ -82,12 +85,13 @@