mirror of
https://github.com/frappe/books.git
synced 2024-11-14 01:14:03 +00:00
fix: Enable maximise button in Mac
This commit is contained in:
parent
2db4484ab2
commit
2212b007ee
@ -4,11 +4,7 @@
|
|||||||
:style="sidebarBackground"
|
:style="sidebarBackground"
|
||||||
>
|
>
|
||||||
<div class="window-no-drag">
|
<div class="window-no-drag">
|
||||||
<WindowControls
|
<WindowControls v-if="platform === 'Mac'" class="px-3 mb-6" />
|
||||||
v-if="platform === 'Mac'"
|
|
||||||
class="px-3 mb-6"
|
|
||||||
:buttons="['close', 'minimize']"
|
|
||||||
/>
|
|
||||||
<div class="px-3">
|
<div class="px-3">
|
||||||
<h6 class="text-base font-semibold" @click="$router.push('/')">
|
<h6 class="text-base font-semibold" @click="$router.push('/')">
|
||||||
{{ companyName }}
|
{{ companyName }}
|
||||||
|
@ -32,8 +32,11 @@ export default {
|
|||||||
methods: {
|
methods: {
|
||||||
action(name) {
|
action(name) {
|
||||||
if (this.buttons.includes(name)) {
|
if (this.buttons.includes(name)) {
|
||||||
this.$emit(name);
|
|
||||||
let window = electron.remote.getCurrentWindow();
|
let window = electron.remote.getCurrentWindow();
|
||||||
|
if (name === 'maximize' && window.isMaximized()) {
|
||||||
|
name = 'unmaximize';
|
||||||
|
}
|
||||||
|
this.$emit(name);
|
||||||
window[name]();
|
window[name]();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
Loading…
Reference in New Issue
Block a user