Use global events to revoke env access
This commit is contained in:
committed by
richard-dds
parent
cd9ae2c928
commit
c7471f9e8b
@@ -14,19 +14,13 @@ export default {
|
||||
},
|
||||
|
||||
props: {
|
||||
name: String
|
||||
},
|
||||
|
||||
data: function() {
|
||||
return { revoke: false }
|
||||
name: String,
|
||||
id: String
|
||||
},
|
||||
|
||||
methods: {
|
||||
doRevoke: function () {
|
||||
// This is being used to send an event to the edit-environment-role child component.
|
||||
// We'll toggle this back on the next line so that it can be used again.
|
||||
this.revoke = true
|
||||
setTimeout(() => { this.revoke = false }, 25)
|
||||
this.$root.$emit('revoke-' + this.id)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user