This commit is contained in:
2019-05-23 21:24:58 +00:00
parent 6c439b0d21
commit 35942e8ee2
3 changed files with 48 additions and 14 deletions

View File

@@ -94,7 +94,8 @@ export default {
"ErrorUserNotAuthorized",
"DeletePrompt",
"AreYouSureUnsavedChanges",
"Leave"
"Leave",
"Copy"
],
decimalValidate(required) {
return { required: required, decimal: [2, this.formats.decimalSeparator] };

View File

@@ -14,7 +14,7 @@
>
</v-flex>
<v-flex>
<v-card>
<v-card id="aboutinfocard">
<v-subheader>{{ this.$gzlocale.get("ClientApp") }}</v-subheader>
<div>
<span class="ml-4 body-1">{{ this.$gzlocale.get("Version") }}:</span>
@@ -67,9 +67,9 @@
<span class="ml-4 body-1"
>{{ this.$gzlocale.get("RegisteredUser") }}:</span
>
<span class="body-2">{{
serverInfo.license.license.licensedTo
}}</span>
<span class="body-2">
{{ serverInfo.license.license.licensedTo }}
</span>
</div>
<div>
<span class="ml-4 body-1"
@@ -87,17 +87,17 @@
<span class="ml-4 body-1"
>{{ this.$gzlocale.get("LicenseExpiration") }}:</span
>
<span class="body-2">{{
serverInfo.license.license.licenseExpiration
}}</span>
<span class="body-2">
{{ serverInfo.license.license.licenseExpiration }}
</span>
</div>
<div>
<span class="ml-4 body-1"
>{{ this.$gzlocale.get("SupportedUntil") }}:</span
>
<span class="body-2">{{
serverInfo.license.license.maintenanceExpiration
}}</span>
<span class="body-2">
{{ serverInfo.license.license.maintenanceExpiration }}
</span>
</div>
<v-divider class="mt-4"></v-divider>
@@ -118,9 +118,34 @@
</template>
<script>
/* eslint-disable */
/* Xeslint-disable */
import aboutInfo from "../api/aboutinfo";
/////////////////////////////
//
//
function clickHandler(menuItem) {
if (!menuItem) {
return;
}
var m = this.$gzmenu.parseMenuItem(menuItem);
if (m.owner == "about" && !m.disabled) {
switch (m.key) {
case "copysupportinfo":
//put the support info on the clipboard:
var element = document.getElementById('aboutinfocard');
var text = element.innerText || element.textContent;
navigator.clipboard.writeText(text);
break;
default:
m.vm.$gzevent.$emit(
"notify-warning",
"About.vue::context click: [" + m.key + "]"
);
}
}
}
export default {
beforeCreate() {
var vm = this;
@@ -152,11 +177,19 @@ export default {
});
},
created() {
var vm = this;
this.$gzevent.$emit("menu-change", {
isMain: false,
icon: "fa-info-circle",
title: this.$gzlocale.get("HelpAboutAyaNova"),
menuItems: [
{
title: this.$gzlocale.get("Copy"),
icon: "copy",
surface: true,
key: "about:copysupportinfo",
vm: vm
},
{
title: this.$gzlocale.get("Log"),
icon: "glasses",
@@ -166,7 +199,7 @@ export default {
}
]
});
// this.$gzevent.$on("menu-click", clickHandler);
this.$gzevent.$on("menu-click", clickHandler);
this.clientInfo = aboutInfo;
this.$gzapi

View File

@@ -158,7 +158,7 @@
</template>
<script>
/* eslint-disable */
/* Xeslint-disable */
/////////////////////////////
//