summaryrefslogtreecommitdiffstats
path: root/webapp/src/components/PermissionModule.vue
blob: c63f962af6fe77dc6db638063e473c252a701b37 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
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>