1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-08-07 14:55:27 +02:00

feat(kubernetes): add note teaser and styled application note on details EE-5364 (#9016)

This commit is contained in:
Prabhat Khera 2023-06-09 08:35:29 +12:00 committed by GitHub
parent 58c1a60fee
commit 3233987a21
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
7 changed files with 24 additions and 10 deletions

View file

@ -48,11 +48,23 @@
feature-id="enforceDeploymentOptions"
disabled="true"
checked="false"
field-class="'col-sm-10'"
field-class="'col-sm-12'"
label-class="'col-sm-2'"
tooltip="'Hides the \'Add with form\' buttons and prevents adding/editing of resources via forms'"
></por-switch-field>
</div>
<div class="form-group">
<por-switch-field
label="'Require a note on applications'"
name="'toggle_requireNoteOnApplications'"
feature-id="requireNoteOnApplications"
disabled="true"
checked="false"
field-class="'col-sm-12'"
label-class="'col-sm-2'"
tooltip="'BE allows entry of notes in Add/Edit application. Using this setting will enforce entry of a note in Add/Edit application (and prevent complete clearing of it in Application details).'"
></por-switch-field>
</div>
<!-- !deployment options -->
<!-- actions -->
<div class="form-group">

View file

@ -15,6 +15,7 @@ angular.module('portainer.app').controller('SettingsController', [
$scope.enforceDeploymentOptions = FeatureId.ENFORCE_DEPLOYMENT_OPTIONS;
$scope.updateSettings = updateSettings;
$scope.handleSuccess = handleSuccess;
$scope.requireNoteOnApplications = FeatureId.K8S_REQUIRE_NOTE_ON_APPLICATIONS;
$scope.backupOptions = options;