fix: editing buttons showing up even if no action is allowed (#2043)
* feat: Edit / Page Create Buttons showing up even if no action is allowed #1780
This commit is contained in:
@@ -50,6 +50,10 @@ export default {
|
||||
versionDate: {
|
||||
type: String,
|
||||
default: ''
|
||||
},
|
||||
effectivePermissions: {
|
||||
type: String,
|
||||
default: ''
|
||||
}
|
||||
},
|
||||
data() {
|
||||
@@ -60,7 +64,11 @@ export default {
|
||||
this.$store.commit('page/SET_LOCALE', this.locale)
|
||||
this.$store.commit('page/SET_PATH', this.path)
|
||||
|
||||
this.$store.commit('page/SET_MODE', 'history')
|
||||
this.$store.commit('page/SET_MODE', 'source')
|
||||
|
||||
if (this.effectivePermissions) {
|
||||
this.$store.set('page/effectivePermissions',JSON.parse(Buffer.from(this.effectivePermissions, 'base64').toString()))
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
goLive() {
|
||||
|
||||
Reference in New Issue
Block a user