add validation for private access records (#195)
parent
3b5f0816a9
commit
7372a21308
|
@ -275,6 +275,7 @@ export const contextMixin = {
|
|||
},
|
||||
generateContextMenu() {
|
||||
this.metadataMenu = this.getterContextMenu
|
||||
if (this.panelType === 'window') {
|
||||
this.$store.dispatch('getPrivateAccessFromServer', {
|
||||
tableName: this.$route.params.tableName,
|
||||
recordId: this.$route.params.recordId
|
||||
|
@ -284,6 +285,7 @@ export const contextMixin = {
|
|||
this.validatePrivateAccess(response)
|
||||
})
|
||||
})
|
||||
}
|
||||
this.actions = this.metadataMenu.actions
|
||||
|
||||
if (this.actions && this.actions.length) {
|
||||
|
|
Loading…
Reference in New Issue