mirror of
https://github.com/portainer/portainer.git
synced 2025-07-19 05:19:39 +02:00
24 lines
479 B
TypeScript
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;
|
|
}
|
|
}
|