From e573a05dd3a74d33a155751c6b0adff10d081b52 Mon Sep 17 00:00:00 2001 From: Elsio Sanchez <45974454+elsiosanchez@users.noreply.github.com> Date: Mon, 19 Jul 2021 19:03:30 -0400 Subject: [PATCH] Add activity notifications (#997) Co-authored-by: elsiosanchez --- src/components/ADempiere/Badge/index.vue | 27 +++- .../ADempiere/Form/WorkflowActivity/index.vue | 131 +++++++++++------- src/lang/ADempiere/es.js | 1 + 3 files changed, 108 insertions(+), 51 deletions(-) diff --git a/src/components/ADempiere/Badge/index.vue b/src/components/ADempiere/Badge/index.vue index cc5bf5b2..56cb4669 100644 --- a/src/components/ADempiere/Badge/index.vue +++ b/src/components/ADempiere/Badge/index.vue @@ -33,11 +33,25 @@ - + + @@ -74,6 +88,9 @@ export default { this.show = false }, handleCurrentChange(getRecordNotification, val, index, rows) { + if (!this.isEmptyValue(getRecordNotification.typeActivity) && getRecordNotification.typeActivity) { + return '' + } if (val !== null) { let options = { name: 'ProcessActivity' @@ -92,6 +109,10 @@ export default { this.$router.push(options, () => {}) } }, + openProcess(index, rows) { + this.$router.push({ name: '8e51c232-fb40-11e8-a479-7a0060f0aa01' }, () => {}) + this.deleteRow(index, this.getRecordNotification) + }, deleteRow(index, rows) { rows.splice(index, 1) }, diff --git a/src/components/ADempiere/Form/WorkflowActivity/index.vue b/src/components/ADempiere/Form/WorkflowActivity/index.vue index 7ce1ad16..4fc0104a 100644 --- a/src/components/ADempiere/Form/WorkflowActivity/index.vue +++ b/src/components/ADempiere/Form/WorkflowActivity/index.vue @@ -15,7 +15,7 @@ -->