ui_migration bugfix(vue) reverted changes on v-if and reactive function calling from wot store incorrectly added brackets and ? to access as dict
This commit is contained in:
parent
0b99d0b9b6
commit
e59e99b2f3
2 changed files with 4 additions and 12 deletions
|
|
@ -116,14 +116,6 @@ export default {
|
||||||
baseUri() {
|
baseUri() {
|
||||||
this.checkConnection();
|
this.checkConnection();
|
||||||
},
|
},
|
||||||
// The "Whole App" Wrapper Logic
|
|
||||||
ready(isReady) {
|
|
||||||
if (isReady) {
|
|
||||||
this.bindHardwareInputs(); // Turn keys ON when connected
|
|
||||||
} else {
|
|
||||||
this.unbindHardwareInputs(); // Turn keys OFF if disconnected
|
|
||||||
}
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
|
||||||
mounted() {
|
mounted() {
|
||||||
|
|
@ -145,15 +137,14 @@ export default {
|
||||||
|
|
||||||
created: function () {
|
created: function () {
|
||||||
window.addEventListener("beforeunload", this.handleExit);
|
window.addEventListener("beforeunload", this.handleExit);
|
||||||
|
this.bindHardwareInputs(); // Turn keys ON when connected
|
||||||
},
|
},
|
||||||
|
|
||||||
beforeUnmount: function () {
|
beforeUnmount: function () {
|
||||||
// Disconnect the theme observer
|
// Disconnect the theme observer
|
||||||
this.mql.removeEventListener("change", this.themeWatchdog);
|
this.mql.removeEventListener("change", this.themeWatchdog);
|
||||||
// Remove scrollwheel listener
|
// Remove scrollwheel listener
|
||||||
window.removeEventListener("wheel", this.wheelMonitor);
|
this.unbindHardwareInputs();
|
||||||
// Remove key listeners
|
|
||||||
Mousetrap.reset();
|
|
||||||
},
|
},
|
||||||
|
|
||||||
methods: {
|
methods: {
|
||||||
|
|
|
||||||
|
|
@ -1,6 +1,7 @@
|
||||||
<template>
|
<template>
|
||||||
<div
|
<div
|
||||||
v-if="!(requireConnection && !ready) && currentTab === tabID"
|
v-if="!(requireConnection && !ready)"
|
||||||
|
:hidden="currentTab != tabID"
|
||||||
class="uk-width-expand uk-height-1-1"
|
class="uk-width-expand uk-height-1-1"
|
||||||
>
|
>
|
||||||
<slot></slot>
|
<slot></slot>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue