PMCORE-3195:CLONE - 3.7.0 - [Zendesk - 5630]PMFCaseLink() redirects to Participated folder

This commit is contained in:
Fabio Guachalla
2021-10-04 16:28:27 -04:00
parent 2c6b35ecd1
commit 39143a49db
7 changed files with 70 additions and 26 deletions

View File

@@ -757,7 +757,7 @@ export default {
autoShow: false,
},
],
refresh: false,
refresh: true,
});
this.$emit("cleanDefaultOption");
}

View File

@@ -440,7 +440,7 @@ export default {
autoShow: false
}
],
refresh: false
refresh: true
});
this.$emit("cleanDefaultOption");
}

View File

@@ -4,6 +4,15 @@
:class="[{ collapsed: collapsed }, { onmobile: isOnMobile }]"
>
<div class="demo">
<b-alert
:show="dataAlert.dismissCountDown"
dismissible
:variant="dataAlert.variant"
@dismissed="dataAlert.dismissCountDown = 0"
@dismiss-count-down="countDownChanged"
>
{{ dataAlert.message }}
</b-alert>
<div class="container">
<router-view />
</div>
@@ -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;
},
}
};
</script>

View File

@@ -475,7 +475,7 @@ export default {
autoShow: false,
},
],
refresh: false,
refresh: true,
});
this.$emit("cleanDefaultOption");
}

View File

@@ -474,7 +474,7 @@ export default {
autoShow: false
}
],
refresh: false
refresh: true
});
this.$emit("cleanDefaultOption");
}

View File

@@ -20747,6 +20747,12 @@ msgstr "There are no older session files"
msgid "You cannot open this case because on the reason below: <br> You do not have permission to see this case. <br> You have not participated in this case. <br> Case is already claimed."
msgstr "You cannot open this case because on the reason below: <br> You do not have permission to see this case. <br> You have not participated in this case. <br> 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

View File

@@ -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: <br> You do not have permission to see this case. <br> You have not participated in this case. <br> 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') ,