add validation for private access records (#195)

pull/3759/head
Leonel Matos 2019-12-06 00:33:02 -04:00 committed by Yamel Senih
parent 3b5f0816a9
commit 7372a21308
1 changed files with 10 additions and 8 deletions

View File

@ -275,15 +275,17 @@ export const contextMixin = {
}, },
generateContextMenu() { generateContextMenu() {
this.metadataMenu = this.getterContextMenu this.metadataMenu = this.getterContextMenu
this.$store.dispatch('getPrivateAccessFromServer', { if (this.panelType === 'window') {
tableName: this.$route.params.tableName, this.$store.dispatch('getPrivateAccessFromServer', {
recordId: this.$route.params.recordId tableName: this.$route.params.tableName,
}) recordId: this.$route.params.recordId
.then(response => {
this.$nextTick(() => {
this.validatePrivateAccess(response)
})
}) })
.then(response => {
this.$nextTick(() => {
this.validatePrivateAccess(response)
})
})
}
this.actions = this.metadataMenu.actions this.actions = this.metadataMenu.actions
if (this.actions && this.actions.length) { if (this.actions && this.actions.length) {