Fix bug
This commit is contained in:
parent
9f22f924f1
commit
ed130ca82c
2 changed files with 5 additions and 14 deletions
|
|
@ -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;
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue