diff --git a/resources/js/bootstrap.js b/resources/js/bootstrap.js index 9b9ccb9fe3..1511c2ed12 100644 --- a/resources/js/bootstrap.js +++ b/resources/js/bootstrap.js @@ -224,7 +224,9 @@ window.ProcessMaker.apiClient.defaults.timeout = apiTimeout; // Default alert functionality window.ProcessMaker.alert = function (text, variant) { - window.alert(`${variant}: ${text}`); + if ('string' === typeof text) { + window.alert(text); + } }; const openAiEnabled = document.head.querySelector("meta[name=\"open-ai-nlq-to-pmql\"]"); diff --git a/resources/js/processes/screen-builder/components/form/file-upload.vue b/resources/js/processes/screen-builder/components/form/file-upload.vue index d954406c77..366f66e676 100644 --- a/resources/js/processes/screen-builder/components/form/file-upload.vue +++ b/resources/js/processes/screen-builder/components/form/file-upload.vue @@ -226,7 +226,7 @@ export default { file.ignored = false; } if (file.ignored) { - ProcessMaker.alert(this.$t("File not allowed."), "danger"); + ProcessMaker.alert(this.$t("This file type is not accepted."), "danger"); return false } }