|
1 | 1 | <template> |
2 | | - <div class="menubar d-flex"> |
3 | | - <div class="menubar__logo d-flex"> |
4 | | - <thermalLogo/> |
5 | | - </div> |
6 | | - <div class="menubar__list d-flex align-items-center"> |
7 | | - </div> |
8 | | - <div class="menubar__drag"></div> |
9 | | - <div class="menubar__controles"> |
10 | | - <windowsButton/> |
11 | | - </div> |
12 | | - </div> |
| 2 | + <div class="menubar d-flex"> |
| 3 | + <div class="menubar__logo d-flex"> |
| 4 | + <thermalLogo/> |
| 5 | + </div> |
| 6 | + <div class="menubar__list d-flex align-items-center"> |
13 | 7 | <div @click="fileDropdown()"> |
14 | 8 | <div class="menubar__list__item">File</div> |
15 | 9 | <div @mouseleave="fileDropdown()" v-show="this.menu.file.isActive" class="menubar__list__item__dropdown"> |
|
85 | 79 | <div class="menubar__list__item__dropdown__item">Contact support</div> |
86 | 80 | <div class="menubar__list__item__dropdown__item">Show User Guides</div> |
87 | 81 | <div class="menubar__list__item__dropdown__item">Show logs in Explorer</div> |
88 | | - <div class="menubar__list__item__dropdown__item">About</div> |
| 82 | + <div @click="about()" class="menubar__list__item__dropdown__item">About</div> |
89 | 83 | </div> |
90 | 84 | </div> |
| 85 | + </div> |
| 86 | + <div class="menubar__drag"></div> |
| 87 | + <div class="menubar__controles"> |
| 88 | + <windowsButton/> |
| 89 | + </div> |
| 90 | + </div> |
91 | 91 | </template> |
92 | 92 |
|
93 | 93 | <script> |
94 | 94 | import thermalLogo from "./icon/logo" |
95 | 95 | import windowsButton from "./windowsButton" |
| 96 | +const { remote } = require("electron") |
96 | 97 |
|
97 | 98 | export default { |
98 | 99 | name: "menubar", |
@@ -148,6 +149,10 @@ export default { |
148 | 149 | }, |
149 | 150 | exitApp() { |
150 | 151 | remote.getCurrentWindow().close() |
| 152 | + }, |
| 153 | + about() { |
| 154 | + this.$store.dispatch("model/showModelPlaceholder") |
| 155 | + this.$store.dispatch("workspace/showAboutModel") |
151 | 156 | } |
152 | 157 | } |
153 | 158 | } |
|
0 commit comments