diff --git a/src/components/NotificationRuleList.vue b/src/components/NotificationRuleList.vue index ec52fd5e..c08a821a 100644 --- a/src/components/NotificationRuleList.vue +++ b/src/components/NotificationRuleList.vue @@ -974,7 +974,9 @@ export default { editActive(item) { this.editedId = item.id this.editedItem = Object.assign({}, item) - this.active_dialog = true + this.editedItem.active = !this.editedItem.active + if (this.editedItem.active) this.changeState(this.editedItem) + else this.active_dialog = true }, editItem(item) { this.editedId = item.id diff --git a/src/store/modules/notificationRule.store.ts b/src/store/modules/notificationRule.store.ts index 14656591..abb0984e 100644 --- a/src/store/modules/notificationRule.store.ts +++ b/src/store/modules/notificationRule.store.ts @@ -9,10 +9,10 @@ const state = { pagination: { page: 1, - rowsPerPage: 20, + rowsPerPage: 15, sortBy: 'startTime', descending: true, - rowsPerPageItems: [10, 20, 50, 100, 200] + rowsPerPageItems: [10, 15, 30, 50, 100, 200] } }