This commit is contained in:
2019-07-19 19:41:58 +00:00
parent 177f08f49d
commit 7bbe2bd315
22 changed files with 191 additions and 192 deletions

View File

@@ -61,16 +61,16 @@ export default {
confirmDelete(vm) {
//https://github.com/yariksav/vuetify-dialog#readme
return vm.$dialog.warning({
text: vm.$gzlocale.get("DeletePrompt"),
title: vm.$gzlocale.get("Delete"),
text: window.$gz.locale.get("DeletePrompt"),
title: window.$gz.locale.get("Delete"),
icon: "fa-exclamation-triangle",
actions: [
{
text: vm.$gzlocale.get("Cancel"),
text: window.$gz.locale.get("Cancel"),
key: false
},
{
text: vm.$gzlocale.get("Delete"),
text: window.$gz.locale.get("Delete"),
color: "red",
key: true
}
@@ -81,16 +81,16 @@ export default {
//
confirmLeaveUnsaved(vm) {
return vm.$dialog.warning({
text: vm.$gzlocale.get("AreYouSureUnsavedChanges"),
title: vm.$gzlocale.get("Leave"),
text: window.$gz.locale.get("AreYouSureUnsavedChanges"),
title: window.$gz.locale.get("Leave"),
icon: "fa-exclamation-triangle",
actions: [
{
text: vm.$gzlocale.get("Cancel"),
text: window.$gz.locale.get("Cancel"),
key: false
},
{
text: vm.$gzlocale.get("Leave"),
text: window.$gz.locale.get("Leave"),
color: "red",
key: true
}
@@ -103,12 +103,12 @@ export default {
displayLTErrorMessage(vm, ltKeyText, ltKeyTitle = undefined) {
//https://github.com/yariksav/vuetify-dialog#readme
return vm.$dialog.error({
text: ltKeyText ? vm.$gzlocale.get(ltKeyText) : "",
title: ltKeyTitle ? vm.$gzlocale.get(ltKeyTitle) : "",
text: ltKeyText ? window.$gz.locale.get(ltKeyText) : "",
title: ltKeyTitle ? window.$gz.locale.get(ltKeyTitle) : "",
icon: "fa-exclamation-triangle",
actions: [
{
text: vm.$gzlocale.get("OK"),
text: window.$gz.locale.get("OK"),
key: true
}
]
@@ -119,9 +119,9 @@ export default {
async getReportChoice(vm, reports, preselected) {
const result = await vm.$dialog.showAndWait(reportChooser, {
reports: reports,
title: vm.$gzlocale.get("Report"),
oktext: vm.$gzlocale.get("Print"),
canceltext: vm.$gzlocale.get("Cancel"),
title: window.$gz.locale.get("Report"),
oktext: window.$gz.locale.get("Print"),
canceltext: window.$gz.locale.get("Cancel"),
selectedvalue: preselected
});
return result;