This commit is contained in:
@@ -19,5 +19,6 @@ export default {
|
|||||||
height: window.screen.height,
|
height: window.screen.height,
|
||||||
devicePixelRatio: window.devicePixelRatio,
|
devicePixelRatio: window.devicePixelRatio,
|
||||||
pixelDepth: window.screen.pixelDepth
|
pixelDepth: window.screen.pixelDepth
|
||||||
}
|
},
|
||||||
|
clientLog: store.state.logArray
|
||||||
};
|
};
|
||||||
|
|||||||
@@ -118,7 +118,7 @@
|
|||||||
</template>
|
</template>
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
/* Xeslint-disable */
|
/* xeslint-disable */
|
||||||
import aboutInfo from "../api/aboutinfo";
|
import aboutInfo from "../api/aboutinfo";
|
||||||
|
|
||||||
/////////////////////////////
|
/////////////////////////////
|
||||||
@@ -132,10 +132,16 @@ function clickHandler(menuItem) {
|
|||||||
if (m.owner == "about" && !m.disabled) {
|
if (m.owner == "about" && !m.disabled) {
|
||||||
switch (m.key) {
|
switch (m.key) {
|
||||||
case "copysupportinfo":
|
case "copysupportinfo":
|
||||||
//put the support info on the clipboard:
|
//put the support info on the clipboard:
|
||||||
var element = document.getElementById('aboutinfocard');
|
var element = document.getElementById("aboutinfocard");
|
||||||
var text = element.innerText || element.textContent;
|
var text = element.innerText || element.textContent;
|
||||||
navigator.clipboard.writeText(text);
|
|
||||||
|
var logText = "";
|
||||||
|
this.$_.forEach(aboutInfo.clientLog, function appendLogItem(value) {
|
||||||
|
logText += value + "\n";
|
||||||
|
});
|
||||||
|
|
||||||
|
navigator.clipboard.writeText(text + "\nCLIENT LOG\n" + logText);
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
m.vm.$gzevent.$emit(
|
m.vm.$gzevent.$emit(
|
||||||
@@ -170,37 +176,38 @@ export default {
|
|||||||
"User",
|
"User",
|
||||||
"Browser"
|
"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 => {
|
.catch(err => {
|
||||||
vm.formState.ready = true;
|
vm.formState.ready = true;
|
||||||
vm.$gzHandleFormError(err);
|
vm.$gzHandleFormError(err);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
created() {
|
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.clientInfo = aboutInfo;
|
||||||
this.$gzapi
|
this.$gzapi
|
||||||
.get("ServerInfo")
|
.get("ServerInfo")
|
||||||
|
|||||||
Reference in New Issue
Block a user