Fix bug
This commit is contained in:
parent
9f22f924f1
commit
ed130ca82c
|
@ -4,7 +4,7 @@
|
||||||
<div class="main" ref="main" tabindex="-1" :data-is-modal="isModal" @mousedown="onBodyMousedown" @keydown="onKeydown" :style="{ width, height }">
|
<div class="main" ref="main" tabindex="-1" :data-is-modal="isModal" @mousedown="onBodyMousedown" @keydown="onKeydown" :style="{ width, height }">
|
||||||
<div class="body">
|
<div class="body">
|
||||||
<header ref="header"
|
<header ref="header"
|
||||||
:class="{ withGradient }"
|
:class="{ withGradient: clientSettings.gradientWindowHeader }"
|
||||||
@contextmenu.prevent="() => {}" @mousedown.prevent="onHeaderMousedown"
|
@contextmenu.prevent="() => {}" @mousedown.prevent="onHeaderMousedown"
|
||||||
>
|
>
|
||||||
<h1><slot name="header"></slot></h1>
|
<h1><slot name="header"></slot></h1>
|
||||||
|
@ -91,13 +91,6 @@ export default Vue.extend({
|
||||||
},
|
},
|
||||||
canResize(): boolean {
|
canResize(): boolean {
|
||||||
return !this.isFlexible;
|
return !this.isFlexible;
|
||||||
},
|
|
||||||
withGradient(): boolean {
|
|
||||||
return (this as any).os.isSignedIn
|
|
||||||
? (this as any).clientSettings.gradientWindowHeader != null
|
|
||||||
? (this as any).clientSettings.gradientWindowHeader
|
|
||||||
: false
|
|
||||||
: false;
|
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
*/
|
*/
|
||||||
|
|
||||||
import Vue from 'vue';
|
import Vue from 'vue';
|
||||||
import Vuex, { mapState } from 'vuex';
|
import Vuex from 'vuex';
|
||||||
import VueRouter from 'vue-router';
|
import VueRouter from 'vue-router';
|
||||||
import VModal from 'vue-js-modal';
|
import VModal from 'vue-js-modal';
|
||||||
import * as TreeView from 'vue-json-tree-view';
|
import * as TreeView from 'vue-json-tree-view';
|
||||||
|
@ -146,12 +146,10 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API)
|
||||||
return {
|
return {
|
||||||
os,
|
os,
|
||||||
api: os.api,
|
api: os.api,
|
||||||
apis: os.apis
|
apis: os.apis,
|
||||||
|
clientSettings: os.store.state.settings.data
|
||||||
};
|
};
|
||||||
},
|
}
|
||||||
computed: mapState({
|
|
||||||
clientSettings: state => state.settings.data
|
|
||||||
})
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const app = new Vue({
|
const app = new Vue({
|
||||||
|
|
Loading…
Reference in New Issue