mirror of
https://github.com/kemko/nomad.git
synced 2026-01-02 16:35:44 +03:00
Adds Namespace UI to Access Control - Also adds two step buttons to other Access Control pages --------- Co-authored-by: Phil Renaud <phil@riotindustries.com>
21 lines
556 B
JavaScript
21 lines
556 B
JavaScript
/**
|
|
* Copyright (c) HashiCorp, Inc.
|
|
* SPDX-License-Identifier: BUSL-1.1
|
|
*/
|
|
|
|
import AbstractAbility from './abstract';
|
|
import { alias, and } from '@ember/object/computed';
|
|
import { computed } from '@ember/object';
|
|
|
|
export default class NodePool extends AbstractAbility {
|
|
@alias('hasFeatureAndManagement') canConfigureInNamespace;
|
|
|
|
@and('nodePoolGovernanceIsPresent', 'selfTokenIsManagement')
|
|
hasFeatureAndManagement;
|
|
|
|
@computed('features.[]')
|
|
get nodePoolGovernanceIsPresent() {
|
|
return this.featureIsPresent('Node Pools Governance');
|
|
}
|
|
}
|