diff options
author | Zero~Informatique | 2019-12-21 02:06:02 +0100 |
---|---|---|
committer | Zero~Informatique | 2019-12-21 02:06:02 +0100 |
commit | 62005141132da1e9761598fa3e4b35b4dab38a89 (patch) | |
tree | 3ff8b9f3acd07801075202f9eb2d2f2dfd328ff5 /viewer/src/views/LdGallery.vue | |
parent | bdce958eddc527912a57afa5b8151e1a90e38355 (diff) | |
download | ldgallery-62005141132da1e9761598fa3e4b35b4dab38a89.tar.gz |
Implemented VueX and a basic UIStore with the fullscreen mutation
Some renaming
Diffstat (limited to 'viewer/src/views/LdGallery.vue')
-rw-r--r-- | viewer/src/views/LdGallery.vue | 16 |
1 files changed, 7 insertions, 9 deletions
diff --git a/viewer/src/views/LdGallery.vue b/viewer/src/views/LdGallery.vue index 98f083f..d22bfa6 100644 --- a/viewer/src/views/LdGallery.vue +++ b/viewer/src/views/LdGallery.vue | |||
@@ -1,9 +1,13 @@ | |||
1 | <template> | 1 | <template> |
2 | <div :class="{fullscreen}"> | 2 | <div :class="{fullscreen: $uiStore.fullscreen}"> |
3 | <div class="layout top">header</div> | 3 | <div class="layout top">header</div> |
4 | <div class="layout left">panel</div> | 4 | <div class="layout left">panel</div> |
5 | <router-view class="layout content" /> | 5 | <router-view class="layout content" /> |
6 | <fa-icon icon="expand-arrows-alt" class="layout button-fullscreen" @click="toggleFullscreen" /> | 6 | <fa-icon |
7 | icon="expand-arrows-alt" | ||
8 | class="layout button-fullscreen" | ||
9 | @click="$uiStore.toggleFullscreen()" | ||
10 | /> | ||
7 | </div> | 11 | </div> |
8 | </template> | 12 | </template> |
9 | 13 | ||
@@ -11,13 +15,7 @@ | |||
11 | import { Component, Vue } from "vue-property-decorator"; | 15 | import { Component, Vue } from "vue-property-decorator"; |
12 | 16 | ||
13 | @Component | 17 | @Component |
14 | export default class LdGallery extends Vue { | 18 | export default class LdGallery extends Vue {} |
15 | fullscreen: boolean = false; | ||
16 | |||
17 | toggleFullscreen() { | ||
18 | this.fullscreen = !this.fullscreen; | ||
19 | } | ||
20 | } | ||
21 | </script> | 19 | </script> |
22 | 20 | ||
23 | <style lang="scss"> | 21 | <style lang="scss"> |