This commit is contained in:
@@ -19,5 +19,6 @@ export default {
|
||||
height: window.screen.height,
|
||||
devicePixelRatio: window.devicePixelRatio,
|
||||
pixelDepth: window.screen.pixelDepth
|
||||
}
|
||||
},
|
||||
clientLog: store.state.logArray
|
||||
};
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
</template>
|
||||
|
||||
<script>
|
||||
/* Xeslint-disable */
|
||||
/* xeslint-disable */
|
||||
import aboutInfo from "../api/aboutinfo";
|
||||
|
||||
/////////////////////////////
|
||||
@@ -132,10 +132,16 @@ function clickHandler(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);
|
||||
//put the support info on the clipboard:
|
||||
var element = document.getElementById("aboutinfocard");
|
||||
var text = element.innerText || element.textContent;
|
||||
|
||||
var logText = "";
|
||||
this.$_.forEach(aboutInfo.clientLog, function appendLogItem(value) {
|
||||
logText += value + "\n";
|
||||
});
|
||||
|
||||
navigator.clipboard.writeText(text + "\nCLIENT LOG\n" + logText);
|
||||
break;
|
||||
default:
|
||||
m.vm.$gzevent.$emit(
|
||||
@@ -170,37 +176,38 @@ export default {
|
||||
"User",
|
||||
"Browser"
|
||||
])
|
||||
.then(() => (vm.formState.ready = true))
|
||||
.then(function() {
|
||||
vm.formState.ready = true;
|
||||
|
||||
vm.$gzevent.$emit("menu-change", {
|
||||
isMain: false,
|
||||
icon: "fa-info-circle",
|
||||
title: vm.$gzlocale.get("HelpAboutAyaNova"),
|
||||
menuItems: [
|
||||
{
|
||||
title: vm.$gzlocale.get("Copy"),
|
||||
icon: "copy",
|
||||
surface: true,
|
||||
key: "about:copysupportinfo",
|
||||
vm: vm
|
||||
},
|
||||
{
|
||||
title: vm.$gzlocale.get("Log"),
|
||||
icon: "glasses",
|
||||
surface: true,
|
||||
key: "app:nav:log",
|
||||
data: "log"
|
||||
}
|
||||
]
|
||||
});
|
||||
vm.$gzevent.$on("menu-click", clickHandler);
|
||||
})
|
||||
.catch(err => {
|
||||
vm.formState.ready = true;
|
||||
vm.$gzHandleFormError(err);
|
||||
});
|
||||
},
|
||||
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",
|
||||
surface: true,
|
||||
key: "app:nav:log",
|
||||
data: "log"
|
||||
}
|
||||
]
|
||||
});
|
||||
this.$gzevent.$on("menu-click", clickHandler);
|
||||
|
||||
this.clientInfo = aboutInfo;
|
||||
this.$gzapi
|
||||
.get("ServerInfo")
|
||||
|
||||
Reference in New Issue
Block a user