Force OK to be capitalised in confirmation modals

This commit is contained in:
jaknapper 2025-05-22 15:10:16 +01:00
parent 816cfd3220
commit 57840ab979

View file

@ -86,6 +86,9 @@ Vue.mixin({
// Stop GPU preview to show modal // Stop GPU preview to show modal
context.$root.$emit("globalTogglePreview", false); context.$root.$emit("globalTogglePreview", false);
// force OK to be capitalised
UIkit.modal.i18n = { ok: "OK", cancel: "Cancel" };
var showModal = function(resolve, reject) { var showModal = function(resolve, reject) {
UIkit.modal UIkit.modal
.confirm(modalText, { stack: true }) .confirm(modalText, { stack: true })
@ -150,7 +153,7 @@ Vue.mixin({
return `${error.response.data.detail}`; return `${error.response.data.detail}`;
} }
// If the response is just some generic error response // If the response is just some generic error response
if (error.response.data){ if (error.response.data) {
return `${error.response.data}`; return `${error.response.data}`;
} }
return `${error.response}`; return `${error.response}`;