File tree 1 file changed +33
-22
lines changed
client-app/src/components
1 file changed +33
-22
lines changed Original file line number Diff line number Diff line change 1
1
<template >
2
- <div class =" buttons is-centered" v-if =" latest != null" >
3
- <a :href =" latest.windows.path" class =" button is-primary is-medium" >
4
- <span class =" icon" >
5
- <i class =" fab fa-windows" />
6
- </span >
7
- <span >Windows <span class =" is-size-7" >(v{{latest.version}})</span ></span >
8
- </a >
9
- <a :href =" latest.macOS.path" class =" button is-primary is-medium" >
10
- <span class =" icon" >
11
- <i class =" fab fa-apple" />
12
- </span >
13
- <span >MacOS <span class =" is-size-7" >(v{{latest.version}})</span ></span >
14
- </a >
2
+ <div >
3
+ <div class =" buttons is-centered" v-if =" latest != null" >
4
+ <a :href =" latest.windows.path" class =" button is-primary is-medium" >
5
+ <span class =" icon" >
6
+ <i class =" fab fa-windows" />
7
+ </span >
8
+ <span >
9
+ Windows
10
+ <span class =" is-size-7" >(v{{latest.version}})</span >
11
+ </span >
12
+ </a >
13
+ <a :href =" latest.macOS.path" class =" button is-primary is-medium" >
14
+ <span class =" icon" >
15
+ <i class =" fab fa-apple" />
16
+ </span >
17
+ <span >
18
+ MacOS
19
+ <span class =" is-size-7" >(v{{latest.version}})</span >
20
+ </span >
21
+ </a >
22
+ </div >
23
+ <div v-else class =" notification is-white-bis" >
24
+ Fetching the latest downloads from <strong ><a href =" https://github.com/larsbaunwall/plodo/releases" >Github</a ></strong >...
25
+ </div >
15
26
</div >
16
27
</template >
17
28
18
29
<script >
19
30
import ApiService from " @/common/ApiService" ;
20
31
export default {
21
- data () {
22
- return {
23
- latest: null
24
- }
25
- },
26
- async mounted () {
27
- const version = await ApiService .getLatestAppVersion ();
28
- this .latest = version;
29
- }
32
+ data () {
33
+ return {
34
+ latest: null
35
+ };
36
+ },
37
+ async created () {
38
+ const version = await ApiService .getLatestAppVersion ();
39
+ this .latest = version;
40
+ }
30
41
};
31
42
</script >
32
43
You can’t perform that action at this time.
0 commit comments