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

refactor(docker/switch/component): implement new design [EE-3688] (#7239)

* refactor(docker/switch/component): implement new design [EE=3688]

* revert create volume

* revert por-switch on exec.html

* refactor(container): switch fields on container creation page and edition page

* refactor(container): switch fields on networking/secret/servicewebhook/swarmvisual

* bug fixed

* code review issues

* merge code

* fix teaser for container edition

* fix encode secret toggle bug on adding secret page

* fixed a bug for service webhook toggle
This commit is contained in:
Zhang Hao 2022-07-20 08:39:44 +08:00 committed by GitHub
parent e07253bcef
commit 43bbeed141
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
15 changed files with 194 additions and 86 deletions

View file

@ -31,14 +31,22 @@
<div class="col-sm-12 form-section-title"> Options </div>
<div class="form-group">
<div class="col-sm-12">
<label class="control-label text-left"> Only display running tasks </label>
<label class="switch" style="margin-left: 20px">
<input type="checkbox" ng-model="state.DisplayOnlyRunningTasks" ng-change="changeDisplayOnlyRunningTasks()" /><i></i>
</label>
<por-switch-field
label-class="'col-sm-2'"
checked="state.DisplayOnlyRunningTasks"
label="'Only display running tasks'"
on-change="(handleChangeDisplayOnlyRunningTasks)"
></por-switch-field>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label class="control-label text-left"> Display node labels </label>
<label class="switch" style="margin-left: 20px"> <input type="checkbox" ng-model="state.DisplayNodeLabels" ng-change="changeDisplayNodeLabels()" /><i></i> </label>
<por-switch-field
label-class="'col-sm-2'"
checked="state.DisplayNodeLabels"
label="'Display node labels'"
on-change="(handleChangeDisplayNodeLabels)"
></por-switch-field>
</div>
</div>
</form>