Skip to content

Commit f51fab0

Browse files
authored
Merge pull request #8451 from ProcessMaker/bugfix/FOUR-25816
FOUR-25816:When the TCE is disable the dashboard does not show nothing
2 parents d6fa325 + 806752d commit f51fab0

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

resources/js/processes-catalogue/components/ProcessScreen.vue

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ import processNavigationMixin from "../../components/shared/processNavigation";
5858
import ProcessesMixin from "./mixins/ProcessesMixin";
5959
import ProcessHeaderStart from "./ProcessHeaderStart.vue";
6060
61+
const tceValidScreen = ["tce-student", "tce-college", "tce-grants"];
62+
6163
export default {
6264
components: {
6365
DisplayScreen,
@@ -96,6 +98,11 @@ export default {
9698
.then((response) => {
9799
this.screen = response.data;
98100
this.showScreen = response.data.config !== null;
101+
})
102+
.catch(() => {
103+
if(tceValidScreen.includes(this.screen_id)){
104+
window.ProcessMaker.alert(this.$t("TCE dashboards are currently unavailable, please contact with the administrator in order to enable"), "danger");
105+
}
99106
});
100107
},
101108
},

resources/lang/en.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2132,6 +2132,7 @@
21322132
"Task": "Task",
21332133
"TASK": "TASK",
21342134
"Tasks": "Tasks",
2135+
"TCE dashboards are currently unavailable, please contact with the administrator in order to enable": "TCE dashboards are currently unavailable, please contact with the administrator in order to enable",
21352136
"Template Author": "Template Author",
21362137
"Template Documentation": "Template Documentation",
21372138
"Template Name": "Template Name",

0 commit comments

Comments
 (0)