mirror of https://github.com/status-im/consul.git
ui: Remove UNDEFINED state from being undeleteable (#13702)
* ui: Remove UNDEFINED state from being undeleteable * Fixup node tests
This commit is contained in:
parent
6b67b74a19
commit
6fa68a5b57
|
@ -11,8 +11,10 @@ export default class PeerAbility extends BaseAbility {
|
|||
return this.canDelete;
|
||||
}
|
||||
get canDelete() {
|
||||
// TODO: Need to confirm these states
|
||||
return !['DELETING', 'TERMINATED', 'UNDEFINED'].includes(this.item.State) && super.canDelete;
|
||||
return ![
|
||||
'DELETING',
|
||||
'TERMINATED'
|
||||
].includes(this.item.State) && super.canDelete;
|
||||
}
|
||||
|
||||
get canUse() {
|
||||
|
|
|
@ -20,6 +20,7 @@ test(
|
|||
ACLsEnabled: true,
|
||||
NamespacesEnabled: false,
|
||||
SSOEnabled: false,
|
||||
PeeringEnabled: true,
|
||||
PartitionsEnabled: false,
|
||||
LocalDatacenter: 'dc1',
|
||||
PrimaryDatacenter: 'dc1',
|
||||
|
@ -35,6 +36,7 @@ test(
|
|||
ACLsEnabled: true,
|
||||
NamespacesEnabled: true,
|
||||
SSOEnabled: false,
|
||||
PeeringEnabled: true,
|
||||
PartitionsEnabled: false,
|
||||
LocalDatacenter: 'dc1',
|
||||
PrimaryDatacenter: 'dc1',
|
||||
|
@ -50,6 +52,7 @@ test(
|
|||
ACLsEnabled: true,
|
||||
NamespacesEnabled: false,
|
||||
SSOEnabled: true,
|
||||
PeeringEnabled: true,
|
||||
PartitionsEnabled: false,
|
||||
LocalDatacenter: 'dc1',
|
||||
PrimaryDatacenter: 'dc1',
|
||||
|
|
Loading…
Reference in New Issue