diff --git a/resources/assets/js/home/CustomCaseList/CustomCaseList.vue b/resources/assets/js/home/CustomCaseList/CustomCaseList.vue index 80750804c..aebd8ec38 100644 --- a/resources/assets/js/home/CustomCaseList/CustomCaseList.vue +++ b/resources/assets/js/home/CustomCaseList/CustomCaseList.vue @@ -757,7 +757,7 @@ export default { autoShow: false, }, ], - refresh: false, + refresh: true, }); this.$emit("cleanDefaultOption"); } diff --git a/resources/assets/js/home/Draft/Draft.vue b/resources/assets/js/home/Draft/Draft.vue index be31a1a48..8bd9298ec 100644 --- a/resources/assets/js/home/Draft/Draft.vue +++ b/resources/assets/js/home/Draft/Draft.vue @@ -430,17 +430,17 @@ export default { //force to search in the parallel tasks if (params && params.openapplicationuid) { this.onUpdateFilters({ - params: [ - { - fieldId: "caseNumber", - filterVar: "caseNumber", - label: "", - options:[], - value: params.openapplicationuid, - autoShow: false - } - ], - refresh: false + params: [ + { + fieldId: "caseNumber", + filterVar: "caseNumber", + label: "", + options:[], + value: params.openapplicationuid, + autoShow: false + } + ], + refresh: true }); this.$emit("cleanDefaultOption"); } diff --git a/resources/assets/js/home/Home.vue b/resources/assets/js/home/Home.vue index afced2b62..76eb52d42 100755 --- a/resources/assets/js/home/Home.vue +++ b/resources/assets/js/home/Home.vue @@ -4,6 +4,15 @@ :class="[{ collapsed: collapsed }, { onmobile: isOnMobile }]" >
+ + {{ dataAlert.message }} +
@@ -114,7 +123,13 @@ export default { }, defaultOption: window.config.defaultOption || '', pageData: {}, - settings: {} + settings: {}, + dataAlert: { + dismissSecs: 5, + dismissCountDown: 0, + message: "", + variant: "info" + }, }; }, mounted() { @@ -280,6 +295,10 @@ export default { } else { this.page = "MyCases"; } + if (window.config._nodeId === "CASES_SENT" && this.defaultOption !== "") { + this.cleanDefaultOption(); + this.showAlert(this.$i18n.t("ID_NO_PERMISSION_NO_PARTICIPATED_CASES")); + } this.settings = this.config.setting[this.page]; this.lastPage = this.page; }, @@ -602,7 +621,25 @@ export default { return obj.props; } return obj; - } + }, + /** + * Show the alert message + * @param {string} message - message to be displayen in the body + * @param {string} type - alert type + */ + showAlert(message, type) { + this.dataAlert.message = message; + this.dataAlert.variant = type || "info"; + this.dataAlert.dismissCountDown = this.dataAlert.dismissSecs; + }, + /** + * Updates the alert dismiss value to update + * dismissCountDown and decrease + * @param {mumber} + */ + countDownChanged(dismissCountDown) { + this.dataAlert.dismissCountDown = dismissCountDown; + }, } }; diff --git a/resources/assets/js/home/Inbox/Inbox.vue b/resources/assets/js/home/Inbox/Inbox.vue index c61ab3a4b..28d97f8df 100644 --- a/resources/assets/js/home/Inbox/Inbox.vue +++ b/resources/assets/js/home/Inbox/Inbox.vue @@ -475,7 +475,7 @@ export default { autoShow: false, }, ], - refresh: false, + refresh: true, }); this.$emit("cleanDefaultOption"); } diff --git a/resources/assets/js/home/Paused/Paused.vue b/resources/assets/js/home/Paused/Paused.vue index 7537ea4bf..984ae4cd7 100644 --- a/resources/assets/js/home/Paused/Paused.vue +++ b/resources/assets/js/home/Paused/Paused.vue @@ -464,17 +464,17 @@ export default { //force to search in the parallel tasks if (params && params.openapplicationuid) { this.onUpdateFilters({ - params: [ - { - fieldId: "caseNumber", - filterVar: "caseNumber", - label: "", - options:[], - value: params.openapplicationuid, - autoShow: false - } - ], - refresh: false + params: [ + { + fieldId: "caseNumber", + filterVar: "caseNumber", + label: "", + options:[], + value: params.openapplicationuid, + autoShow: false + } + ], + refresh: true }); this.$emit("cleanDefaultOption"); } diff --git a/workflow/engine/content/translations/english/processmaker.en.po b/workflow/engine/content/translations/english/processmaker.en.po index a15fccccd..1541e9529 100755 --- a/workflow/engine/content/translations/english/processmaker.en.po +++ b/workflow/engine/content/translations/english/processmaker.en.po @@ -20747,6 +20747,12 @@ msgstr "There are no older session files" msgid "You cannot open this case because on the reason below:
You do not have permission to see this case.
You have not participated in this case.
Case is already claimed." msgstr "You cannot open this case because on the reason below:
You do not have permission to see this case.
You have not participated in this case.
Case is already claimed." +# TRANSLATION +# LABEL/ID_NO_PERMISSION_NO_PARTICIPATED_CASES +#: LABEL/ID_NO_PERMISSION_NO_PARTICIPATED_CASES +msgid "You do not have permission to see this case or you have not participated in it." +msgstr "You do not have permission to see this case or you have not participated in it." + # TRANSLATION # LABEL/ID_NO_PREVIOUS_USR_UID #: LABEL/ID_NO_PREVIOUS_USR_UID diff --git a/workflow/engine/data/mysql/insert.sql b/workflow/engine/data/mysql/insert.sql index 97348f40c..a2eedf8bd 100755 --- a/workflow/engine/data/mysql/insert.sql +++ b/workflow/engine/data/mysql/insert.sql @@ -60362,6 +60362,7 @@ INSERT INTO TRANSLATION (TRN_CATEGORY,TRN_ID,TRN_LANG,TRN_VALUE,TRN_UPDATE_DATE ( 'LABEL','ID_NO_NEW_VERSIONS','en','No new versions available','2014-09-18') , ( 'LABEL','ID_NO_OLDER_SESSION_FILES','en','There are no older session files','2014-01-15') , ( 'LABEL','ID_NO_PERMISSION_NO_PARTICIPATED','en','You cannot open this case because on the reason below:
You do not have permission to see this case.
You have not participated in this case.
Case is already claimed.','2017-06-05') , +( 'LABEL','ID_NO_PERMISSION_NO_PARTICIPATED_CASES','en','You do not have permission to see this case or you have not participated in it.','2021-10-04') , ( 'LABEL','ID_NO_PREVIOUS_USR_UID','en','The previous task doesn''t have any users.','2017-10-18') , ( 'LABEL','ID_NO_REASSIGN','en','Do not reassign','2014-01-15') , ( 'LABEL','ID_NO_RECORDS','en','No records','2014-01-15') ,