mirror of https://github.com/portainer/portainer
fix(teaser): add up-to-date teaser [EE-5014] (#8548)
Co-authored-by: testa113 <testa113>pull/8579/head
parent
a45ef3d72e
commit
96e5d44cc2
|
@ -9,7 +9,8 @@ export default class DockerFeaturesConfigurationController {
|
||||||
this.Notifications = Notifications;
|
this.Notifications = Notifications;
|
||||||
this.StateManager = StateManager;
|
this.StateManager = StateManager;
|
||||||
|
|
||||||
this.limitedFeature = FeatureId.HIDE_AUTO_UPDATE_WINDOW;
|
this.limitedFeatureAutoUpdate = FeatureId.HIDE_AUTO_UPDATE_WINDOW;
|
||||||
|
this.limitedFeatureUpToDateImage = FeatureId.IMAGE_UP_TO_DATE_INDICATOR;
|
||||||
|
|
||||||
this.formValues = {
|
this.formValues = {
|
||||||
enableHostManagementFeatures: false,
|
enableHostManagementFeatures: false,
|
||||||
|
|
|
@ -48,7 +48,7 @@
|
||||||
name="'disableSysctlSettingForRegularUsers'"
|
name="'disableSysctlSettingForRegularUsers'"
|
||||||
label="'Enable Change Window'"
|
label="'Enable Change Window'"
|
||||||
label-class="'col-sm-7 col-lg-4'"
|
label-class="'col-sm-7 col-lg-4'"
|
||||||
feature-id="$ctrl.limitedFeature"
|
feature-id="$ctrl.limitedFeatureAutoUpdate"
|
||||||
tooltip="'Specify a time-frame during which automatic updates can occur in this environment.'"
|
tooltip="'Specify a time-frame during which automatic updates can occur in this environment.'"
|
||||||
on-change="($ctrl.onToggleAutoUpdate)"
|
on-change="($ctrl.onToggleAutoUpdate)"
|
||||||
>
|
>
|
||||||
|
@ -147,6 +147,21 @@
|
||||||
</div>
|
</div>
|
||||||
<!-- !security -->
|
<!-- !security -->
|
||||||
|
|
||||||
|
<!-- other -->
|
||||||
|
<div class="col-sm-12 form-section-title"> Other </div>
|
||||||
|
<div class="form-group">
|
||||||
|
<div class="col-sm-12">
|
||||||
|
<por-switch-field
|
||||||
|
label="'Show a notification to indicate out-of-date images for Docker environments'"
|
||||||
|
checked="false"
|
||||||
|
name="'outOfDateImageToggle'"
|
||||||
|
label-class="'col-sm-7 col-lg-4'"
|
||||||
|
feature-id="$ctrl.limitedFeatureUpToDateImage"
|
||||||
|
></por-switch-field>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<!-- !other -->
|
||||||
|
|
||||||
<!-- actions -->
|
<!-- actions -->
|
||||||
<div class="col-sm-12 form-section-title"> Actions </div>
|
<div class="col-sm-12 form-section-title"> Actions </div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
|
|
|
@ -28,6 +28,7 @@ export enum FeatureId {
|
||||||
ACTIVITY_AUDIT = 'activity-audit',
|
ACTIVITY_AUDIT = 'activity-audit',
|
||||||
FORCE_REDEPLOYMENT = 'force-redeployment',
|
FORCE_REDEPLOYMENT = 'force-redeployment',
|
||||||
HIDE_AUTO_UPDATE_WINDOW = 'hide-auto-update-window',
|
HIDE_AUTO_UPDATE_WINDOW = 'hide-auto-update-window',
|
||||||
|
IMAGE_UP_TO_DATE_INDICATOR = 'image-up-to-date-indicator',
|
||||||
STACK_PULL_IMAGE = 'stack-pull-image',
|
STACK_PULL_IMAGE = 'stack-pull-image',
|
||||||
STACK_WEBHOOK = 'stack-webhook',
|
STACK_WEBHOOK = 'stack-webhook',
|
||||||
CONTAINER_WEBHOOK = 'container-webhook',
|
CONTAINER_WEBHOOK = 'container-webhook',
|
||||||
|
|
|
@ -32,6 +32,7 @@ export async function init(edition: Edition) {
|
||||||
[FeatureId.TEAM_MEMBERSHIP]: Edition.BE,
|
[FeatureId.TEAM_MEMBERSHIP]: Edition.BE,
|
||||||
[FeatureId.FORCE_REDEPLOYMENT]: Edition.BE,
|
[FeatureId.FORCE_REDEPLOYMENT]: Edition.BE,
|
||||||
[FeatureId.HIDE_AUTO_UPDATE_WINDOW]: Edition.BE,
|
[FeatureId.HIDE_AUTO_UPDATE_WINDOW]: Edition.BE,
|
||||||
|
[FeatureId.IMAGE_UP_TO_DATE_INDICATOR]: Edition.BE,
|
||||||
[FeatureId.STACK_PULL_IMAGE]: Edition.BE,
|
[FeatureId.STACK_PULL_IMAGE]: Edition.BE,
|
||||||
[FeatureId.STACK_WEBHOOK]: Edition.BE,
|
[FeatureId.STACK_WEBHOOK]: Edition.BE,
|
||||||
[FeatureId.CONTAINER_WEBHOOK]: Edition.BE,
|
[FeatureId.CONTAINER_WEBHOOK]: Edition.BE,
|
||||||
|
|
|
@ -10,6 +10,7 @@ export const HIDE_INTERNAL_AUTH = 'hide-internal-auth';
|
||||||
export const EXTERNAL_AUTH_LDAP = 'external-auth-ldap';
|
export const EXTERNAL_AUTH_LDAP = 'external-auth-ldap';
|
||||||
export const ACTIVITY_AUDIT = 'activity-audit';
|
export const ACTIVITY_AUDIT = 'activity-audit';
|
||||||
export const HIDE_AUTO_UPDATE_WINDOW = 'hide-auto-update-window';
|
export const HIDE_AUTO_UPDATE_WINDOW = 'hide-auto-update-window';
|
||||||
|
export const IMAGE_UP_TO_DATE_INDICATOR = 'image-up-to-date-indicator';
|
||||||
export const FORCE_REDEPLOYMENT = 'force-redeployment';
|
export const FORCE_REDEPLOYMENT = 'force-redeployment';
|
||||||
export const STACK_PULL_IMAGE = 'stack-pull-image';
|
export const STACK_PULL_IMAGE = 'stack-pull-image';
|
||||||
export const STACK_WEBHOOK = 'stack-webhook';
|
export const STACK_WEBHOOK = 'stack-webhook';
|
||||||
|
|
Loading…
Reference in New Issue