mirror of
https://iceshrimp.dev/iceshrimp/iceshrimp
synced 2024-11-25 15:46:06 +09:00
Fix bug
This commit is contained in:
parent
46c4d9e0ba
commit
3a51521b37
@ -4,7 +4,7 @@
|
||||
<div class="main" ref="main" tabindex="-1" :data-is-modal="isModal" @mousedown="onBodyMousedown" @keydown="onKeydown" :style="{ width, height }">
|
||||
<div class="body">
|
||||
<header ref="header"
|
||||
:class="{ withGradient }"
|
||||
:class="{ withGradient: clientSettings.gradientWindowHeader }"
|
||||
@contextmenu.prevent="() => {}" @mousedown.prevent="onHeaderMousedown"
|
||||
>
|
||||
<h1><slot name="header"></slot></h1>
|
||||
@ -91,13 +91,6 @@ export default Vue.extend({
|
||||
},
|
||||
canResize(): boolean {
|
||||
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 Vuex, { mapState } from 'vuex';
|
||||
import Vuex from 'vuex';
|
||||
import VueRouter from 'vue-router';
|
||||
import VModal from 'vue-js-modal';
|
||||
import * as TreeView from 'vue-json-tree-view';
|
||||
@ -146,12 +146,10 @@ export default (callback: (launch: (router: VueRouter, api?: (os: MiOS) => API)
|
||||
return {
|
||||
os,
|
||||
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({
|
||||
|
Loading…
Reference in New Issue
Block a user