1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-19 05:19:39 +02:00
portainer/app/portainer/components/BEFeatureIndicator/BEFeatureIndicator.controller.ts

24 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;
}
}