Files
nomad/ui/app/abilities/node-pool.js
Mike Nomitch bc039a7a8a Adds Namespace UI to Access Control (#19402)
Adds Namespace UI to Access Control - Also adds two step buttons to other Access Control pages

---------

Co-authored-by: Phil Renaud <phil@riotindustries.com>
2024-01-16 09:20:50 -08:00

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');
}
}