This commit is contained in:
2022-02-12 01:09:54 +00:00
parent a50d73bcdb
commit ca2772df96
2 changed files with 25 additions and 4 deletions

View File

@@ -526,7 +526,12 @@ function clickHandler(menuItem) {
window.$gz.store.state.globalSettings.serverDbId window.$gz.store.state.globalSettings.serverDbId
); );
break; break;
case "eula":
window.$gz.eventBus.$emit("menu-click", {
key: "app:help",
data: "license"
});
break;
default: default:
window.$gz.eventBus.$emit( window.$gz.eventBus.$emit(
"notify-warning", "notify-warning",
@@ -576,7 +581,10 @@ function generateMenu(vm) {
vm: vm vm: vm
}); });
} }
menuOptions.menuItems.push({
title: "ViewEULA",
key: FORM_KEY + ":eula"
});
window.$gz.eventBus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
} }
@@ -630,7 +638,8 @@ async function fetchTranslatedText() {
"HelpReleaseKey", "HelpReleaseKey",
"HelpRestore", "HelpRestore",
"CopyDbId", "CopyDbId",
"UserCountExceeded" "UserCountExceeded",
"ViewEULA"
]); ]);
} }
</script> </script>

View File

@@ -226,6 +226,11 @@ function generateMenu(vm) {
target: "_blank", target: "_blank",
key: "about:contact" key: "about:contact"
}); });
menuOptions.menuItems.push({
title: "ViewEULA",
key: "about:eula"
});
} }
window.$gz.eventBus.$emit("menu-change", menuOptions); window.$gz.eventBus.$emit("menu-change", menuOptions);
@@ -243,6 +248,12 @@ function clickHandler(menuItem) {
switch (m.key) { switch (m.key) {
case "contact": case "contact":
break; break;
case "eula":
window.$gz.eventBus.$emit("menu-click", {
key: "app:help",
data: "license"
});
break;
case "copysupportinfo": case "copysupportinfo":
//put the support info on the clipboard: //put the support info on the clipboard:
{ {
@@ -299,7 +310,8 @@ async function fetchTranslatedText() {
"User", "User",
"Browser", "Browser",
"LanguageCode", "LanguageCode",
"CurrencyCode" "CurrencyCode",
"ViewEULA"
]); ]);
} }