Add Kill Switch section
Currently there's a nasty bug which doesn't allow users from navigating
from the "Kill Switch" section to any other section of the app (see bug
twpowertools:59), but everything else is working.
Change-Id: I3c71352b1899e4ddf9ba5886aa1434a5a1ed93eb
diff --git a/frontend/src/pages/AuthorizedUsers.vue b/frontend/src/pages/AuthorizedUsers.vue
index 2f2b326..1ba31e8 100644
--- a/frontend/src/pages/AuthorizedUsers.vue
+++ b/frontend/src/pages/AuthorizedUsers.vue
@@ -1,4 +1,6 @@
<script>
+import {mapGetters} from 'vuex';
+
import NotAuthorized from './NotAuthorized.vue';
import Page from './utils/Page.vue';
import AuthorizedUserDialog from '../components/AuthorizedUserDialog.vue';
@@ -14,8 +16,8 @@
return {
users: [],
- currentUpdateUser: emptyUser, // Current user being updated
- currentDeleteUser: emptyUser, // Current user being confirmed deletion
+ currentUpdateUser: emptyUser.cloneMessage(), // Current user being updated
+ currentDeleteUser: emptyUser.cloneMessage(), // Current user being confirmed deletion
addDialogOpen: false,
updateDialogOpen: false,
deleteDialogOpen: false,
@@ -67,9 +69,9 @@
},
},
computed: {
- isSignedIn() {
- return this.$store.state.jwtToken != null;
- },
+ ...mapGetters([
+ 'isSignedIn',
+ ]),
},
};
</script>