25 lines
479 B
TypeScript
25 lines
479 B
TypeScript
import { FeatureId } from '@/react/portainer/feature-flags/enums';
|
|
|
|
import { getFeatureDetails } from '@@/BEFeatureIndicator/utils';
|
|
|
|
export default class BeIndicatorController {
|
|
limitedToBE?: boolean;
|
|
|
|
url?: string;
|
|
|
|
feature?: FeatureId;
|
|
|
|
/* @ngInject */
|
|
constructor() {
|
|
this.limitedToBE = false;
|
|
this.url = '';
|
|
}
|
|
|
|
$onInit() {
|
|
const { url, limitedToBE } = getFeatureDetails(this.feature);
|
|
|
|
this.limitedToBE = limitedToBE;
|
|
this.url = url;
|
|
}
|
|
}
|