From c0d43dfb5a5bd7b0d4f250273561c12b3cf9f272 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C5=BEe=20Fortun?= Date: Wed, 17 Apr 2024 11:33:59 +0200 Subject: [PATCH] Add canceled status filter to automation sessions list --- client/web/admin/src/views/Automation/Session/List.vue | 4 ++-- locale/en/corteza-webapp-admin/automation.sessions.yaml | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/web/admin/src/views/Automation/Session/List.vue b/client/web/admin/src/views/Automation/Session/List.vue index 80519d823..81744e3af 100644 --- a/client/web/admin/src/views/Automation/Session/List.vue +++ b/client/web/admin/src/views/Automation/Session/List.vue @@ -139,7 +139,7 @@ export default { // Use null not undefined! sessionID: null, workflowID: null, - status: null, + status: 0, completed: 1, }, @@ -183,11 +183,11 @@ export default { computed: { statusOptions () { return [ - { value: null, text: this.$t('filterForm.all.label') }, { value: 0, text: this.$t('filterForm.started.label') }, { value: 1, text: this.$t('filterForm.prompted.label') }, { value: 2, text: this.$t('filterForm.suspended.label') }, { value: 3, text: this.$t('filterForm.failed.label') }, + { value: 5, text: this.$t('filterForm.canceled.label') }, { value: 4, text: this.$t('filterForm.completed.label') }, ] }, diff --git a/locale/en/corteza-webapp-admin/automation.sessions.yaml b/locale/en/corteza-webapp-admin/automation.sessions.yaml index 2e0c46a9c..4eb7be957 100644 --- a/locale/en/corteza-webapp-admin/automation.sessions.yaml +++ b/locale/en/corteza-webapp-admin/automation.sessions.yaml @@ -48,6 +48,8 @@ list: label: Started suspended: label: Suspended + canceled: + label: Canceled loading: Loading sessions numFound: '{{count}} session found' numFound_plural: '{{count}} sessions found'