mirror of https://github.com/status-im/consul.git
20 lines
379 B
JavaScript
20 lines
379 B
JavaScript
import BaseAbility from 'consul-ui/abilities/base';
|
|
|
|
export default class PeerAbility extends BaseAbility {
|
|
resource = 'operator';
|
|
segmented = false;
|
|
|
|
get isLinkable() {
|
|
return this.canDelete;
|
|
}
|
|
get canDelete() {
|
|
// TODO: Need to confirm these states
|
|
return ![
|
|
'DELETING',
|
|
'TERMINATED',
|
|
'UNDEFINED'
|
|
].includes(this.item.State);
|
|
}
|
|
|
|
}
|