Commit 2f17cc3f authored by anton's avatar anton
Browse files

Add simple mode to Permissions.vue

parent 54766148
Pipeline #79377 passed with stage
in 1 minute and 15 seconds
......@@ -27,11 +27,14 @@
export default {
name: 'Permissions',
components: { ContentBlock, Headline, GroupsStepper },
props: ['resource'],
props: ['resource', 'simple'],
data () {
return {
type: undefined,
aclOptions: [
aclOptions: this.simple ? [
{ label: this.$t('labels.none'), value: undefined },
{ label: this.$t('labels.view'), value: 'view' }
] : [
{ label: this.$t('labels.none'), value: undefined },
{ label: this.$t('labels.view'), value: 'view' },
{ label: this.$t('labels.contribute'), value: 'contribute' },
......@@ -83,6 +86,7 @@
},
methods: {
getText () {
if (this.simple) return ''
let route = this.$route
let routeSplit = typeof route.name === 'string' ? route.name.split('.') : undefined
return this.$t('help.acl.' + routeSplit[0])
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment