summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/PermissionModule.vue
diff options
context:
space:
mode:
authorJannik Schönartz2018-07-02 22:39:23 +0200
committerJannik Schönartz2018-07-02 22:39:23 +0200
commit718f9b58331f4a9bee5eba3296329cc58b4364a6 (patch)
tree63e0048923f1a2a4f4fc44ef9aec0e7c51a967e1 /webapp/src/components/PermissionModule.vue
parent[server] Initial commit to add the node server stuff. (diff)
downloadbas-718f9b58331f4a9bee5eba3296329cc58b4364a6.tar.gz
bas-718f9b58331f4a9bee5eba3296329cc58b4364a6.tar.xz
bas-718f9b58331f4a9bee5eba3296329cc58b4364a6.zip
[webapp] Initial commit to add the node webapp stuff.
Diffstat (limited to 'webapp/src/components/PermissionModule.vue')
-rw-r--r--webapp/src/components/PermissionModule.vue51
1 files changed, 51 insertions, 0 deletions
diff --git a/webapp/src/components/PermissionModule.vue b/webapp/src/components/PermissionModule.vue
new file mode 100644
index 0000000..c63f962
--- /dev/null
+++ b/webapp/src/components/PermissionModule.vue
@@ -0,0 +1,51 @@
+<i18n>
+{
+ "en": {
+ "roles": "Roles",
+ "users": "Users",
+ "createRole": "Create Role",
+ "assignRole": "Assign Role",
+ "revokeRole": "Revoke Role"
+ },
+ "de": {
+ "roles": "Rollen",
+ "users": "Nutzer",
+ "createRole": "Rolle erstellen",
+ "assignRole": "Rolle zuweisen",
+ "revokeROle": "Rolleentziehen"
+ }
+}
+</i18n>
+
+<template>
+ <v-container>
+ <v-layout>
+ <v-flex md10 offset-md1 sm10 offset-sm1>
+ <v-btn color="primary" @click="createRole">{{ $t('createRole') }}</v-btn>
+ <v-btn class="right" color="success">{{ $t('assignRole') }}</v-btn>
+ <v-btn class="right" color="warning">{{ $t('revokeRole') }}</v-btn>
+ </v-flex>
+ </v-layout>
+ </v-container>
+</template>
+
+<script>
+
+export default {
+ name: 'AccountPage',
+ data () {
+ return {
+ }
+ },
+ methods: {
+ createRole: function (event) {
+ window.open('https://bas.stfu-kthx.net:8000/#/dashboard/permission/createRole', '_self')
+ }
+ }
+}
+</script>
+
+<!-- Add "scoped" attribute to limit CSS to this component only -->
+<style scoped>
+
+</style>