|
1 | 1 | <template> |
2 | 2 | <v-app :style="{background: $vuetify.theme.themes[theme].background}"> |
3 | | - <div v-if="isBusy" class="loading-line"></div> |
| 3 | + <div v-if="isBusy" class="loading-line" role="progressbar"></div> |
4 | 4 | <v-main> |
5 | 5 | <router-view></router-view> |
6 | 6 | <v-dialog persistent :value="error"> |
|
17 | 17 | </v-dialog> |
18 | 18 | </v-main> |
19 | 19 | <!-- Check that the SDK client is not currently loading before accessing is methods --> |
20 | | - <div> |
21 | 20 | <!-- show login when not authenticated --> |
22 | 21 |
|
23 | | - <!-- show logout when authenticated --> |
24 | | - <v-bottom-navigation app fixed background-color="secondary"> |
25 | | - <v-btn v-if="!$auth.isAuthenticated" height="100%" @click="login" color="secondary"> |
26 | | - <span>login</span> |
27 | | - <v-icon>mdi-login-variant</v-icon> |
28 | | - </v-btn> |
29 | | - <v-btn v-if="$auth.isAuthenticated" to="/prepare" height="100%" color="secondary"> |
30 | | - <span>Prepare</span> |
31 | | - <v-icon>mdi-clipboard-list-outline</v-icon> |
32 | | - </v-btn> |
33 | | - <v-btn v-if="$auth.isAuthenticated" to="/recent" height="100%" color="secondary"> |
34 | | - <span>Recent Events</span> |
35 | | - <v-icon>mdi-calendar-star</v-icon> |
36 | | - </v-btn> |
37 | | - <v-btn v-if="$auth.isAuthenticated" to="/settings" height="100%" color="secondary"> |
38 | | - <span>Settings</span> |
39 | | - <v-icon>mdi-cog</v-icon> |
40 | | - </v-btn> |
41 | | - <v-btn v-if="$auth.isAuthenticated" @click="logout" height="100%" color="secondary"> |
42 | | - <span>Logout</span> |
43 | | - <v-icon>mdi-logout-variant</v-icon> |
44 | | - </v-btn> |
45 | | - </v-bottom-navigation> |
46 | | - </div> |
| 22 | + <!-- show logout when authenticated --> |
| 23 | + <v-bottom-navigation background-color="secondary" dark role="navigation"> |
| 24 | + <v-btn v-if="!$auth.isAuthenticated" height="100%" @click="login" color="secondary"> |
| 25 | + <span>Login</span> |
| 26 | + <v-icon>mdi-login-variant</v-icon> |
| 27 | + </v-btn> |
| 28 | + <v-btn v-if="$auth.isAuthenticated" to="/prepare" height="100%" color="secondary"> |
| 29 | + <span>Prepare</span> |
| 30 | + <v-icon>mdi-clipboard-list-outline</v-icon> |
| 31 | + </v-btn> |
| 32 | + <v-btn v-if="$auth.isAuthenticated" to="/recent" height="100%" color="secondary"> |
| 33 | + <span>Recent Events</span> |
| 34 | + <v-icon>mdi-calendar-star</v-icon> |
| 35 | + </v-btn> |
| 36 | + <v-btn v-if="$auth.isAuthenticated" to="/settings" height="100%" color="secondary"> |
| 37 | + <span>Settings</span> |
| 38 | + <v-icon>mdi-cog</v-icon> |
| 39 | + </v-btn> |
| 40 | + <v-btn v-if="$auth.isAuthenticated" @click="logout" height="100%" color="secondary"> |
| 41 | + <span>Logout</span> |
| 42 | + <v-icon>mdi-logout-variant</v-icon> |
| 43 | + </v-btn> |
| 44 | + </v-bottom-navigation> |
| 45 | + |
47 | 46 | </v-app> |
48 | 47 | </template> |
49 | 48 |
|
@@ -79,6 +78,12 @@ export default { |
79 | 78 | </script> |
80 | 79 |
|
81 | 80 | <style scoped> |
| 81 | +
|
| 82 | +.theme--dark.v-bottom-navigation .v-btn:not(.v-btn--active) |
| 83 | +{ |
| 84 | + color: rgba(255, 255, 255, .95) !important; |
| 85 | +} |
| 86 | +
|
82 | 87 | .loading-line { |
83 | 88 | height: 3px; |
84 | 89 | position: absolute; |
|
0 commit comments