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", "ErrorUserNotAuthorized",
"DeletePrompt", "DeletePrompt",
"AreYouSureUnsavedChanges", "AreYouSureUnsavedChanges",
"Leave" "Leave",
"Copy"
], ],
decimalValidate(required) { decimalValidate(required) {
return { required: required, decimal: [2, this.formats.decimalSeparator] }; return { required: required, decimal: [2, this.formats.decimalSeparator] };

View File

@@ -14,7 +14,7 @@
> >
</v-flex> </v-flex>
<v-flex> <v-flex>
<v-card> <v-card id="aboutinfocard">
<v-subheader>{{ this.$gzlocale.get("ClientApp") }}</v-subheader> <v-subheader>{{ this.$gzlocale.get("ClientApp") }}</v-subheader>
<div> <div>
<span class="ml-4 body-1">{{ this.$gzlocale.get("Version") }}:</span> <span class="ml-4 body-1">{{ this.$gzlocale.get("Version") }}:</span>
@@ -67,9 +67,9 @@
<span class="ml-4 body-1" <span class="ml-4 body-1"
>{{ this.$gzlocale.get("RegisteredUser") }}:</span >{{ this.$gzlocale.get("RegisteredUser") }}:</span
> >
<span class="body-2">{{ <span class="body-2">
serverInfo.license.license.licensedTo {{ serverInfo.license.license.licensedTo }}
}}</span> </span>
</div> </div>
<div> <div>
<span class="ml-4 body-1" <span class="ml-4 body-1"
@@ -87,17 +87,17 @@
<span class="ml-4 body-1" <span class="ml-4 body-1"
>{{ this.$gzlocale.get("LicenseExpiration") }}:</span >{{ this.$gzlocale.get("LicenseExpiration") }}:</span
> >
<span class="body-2">{{ <span class="body-2">
serverInfo.license.license.licenseExpiration {{ serverInfo.license.license.licenseExpiration }}
}}</span> </span>
</div> </div>
<div> <div>
<span class="ml-4 body-1" <span class="ml-4 body-1"
>{{ this.$gzlocale.get("SupportedUntil") }}:</span >{{ this.$gzlocale.get("SupportedUntil") }}:</span
> >
<span class="body-2">{{ <span class="body-2">
serverInfo.license.license.maintenanceExpiration {{ serverInfo.license.license.maintenanceExpiration }}
}}</span> </span>
</div> </div>
<v-divider class="mt-4"></v-divider> <v-divider class="mt-4"></v-divider>
@@ -118,9 +118,34 @@
</template> </template>
<script> <script>
/* eslint-disable */ /* Xeslint-disable */
import aboutInfo from "../api/aboutinfo"; 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 { export default {
beforeCreate() { beforeCreate() {
var vm = this; var vm = this;
@@ -152,11 +177,19 @@ export default {
}); });
}, },
created() { created() {
var vm = this;
this.$gzevent.$emit("menu-change", { this.$gzevent.$emit("menu-change", {
isMain: false, isMain: false,
icon: "fa-info-circle", icon: "fa-info-circle",
title: this.$gzlocale.get("HelpAboutAyaNova"), title: this.$gzlocale.get("HelpAboutAyaNova"),
menuItems: [ menuItems: [
{
title: this.$gzlocale.get("Copy"),
icon: "copy",
surface: true,
key: "about:copysupportinfo",
vm: vm
},
{ {
title: this.$gzlocale.get("Log"), title: this.$gzlocale.get("Log"),
icon: "glasses", icon: "glasses",
@@ -166,7 +199,7 @@ export default {
} }
] ]
}); });
// this.$gzevent.$on("menu-click", clickHandler); this.$gzevent.$on("menu-click", clickHandler);
this.clientInfo = aboutInfo; this.clientInfo = aboutInfo;
this.$gzapi this.$gzapi

View File

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