1
0
Fork 0
mirror of https://github.com/portainer/portainer.git synced 2025-07-30 18:59:41 +02:00

fix(UI): update-log-viewer-ui [EE-3522] (#7202)

* fix update log viewer layout

* use por-switch in logs

Co-authored-by: Hao Zhang <hao.zhang@portainer.io>
This commit is contained in:
sunportainer 2022-07-12 07:26:23 +08:00 committed by GitHub
parent 82fb5f7ac1
commit 4cc672f902
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 40 additions and 16 deletions

View file

@ -6,29 +6,28 @@
<form class="form-horizontal">
<div class="form-group">
<div class="col-sm-12">
<label for="tls" class="control-label text-left">
Auto-refresh logs
<portainer-tooltip message="'Disabling this option allows you to pause the log collection process and the auto-scrolling.'"></portainer-tooltip>
</label>
<label class="switch" style="margin-left: 20px">
<input
type="checkbox"
ng-model="$ctrl.state.logCollection"
ng-change="$ctrl.state.autoScroll = $ctrl.state.logCollection; $ctrl.logCollectionChange($ctrl.state.logCollection)"
/><i></i>
</label>
<por-switch-field
label-class="'col-sm-2'"
checked="$ctrl.state.logCollection"
label="'Auto-refresh logs'"
tooltip="'Disabling this option allows you to pause the log collection process and the auto-scrolling.'"
on-change="($ctrl.handleLogsCollectionChange)"
></por-switch-field>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label for="tls" class="control-label text-left"> Wrap lines </label>
<label class="switch" style="margin-left: 20px"> <input type="checkbox" ng-model="$ctrl.state.wrapLines" /><i></i> </label>
<por-switch-field label-class="'col-sm-2'" checked="$ctrl.state.wrapLines" label="'Wrap lines'" on-change="($ctrl.handleLogsWrapLinesChange)"></por-switch-field>
</div>
</div>
<div class="form-group">
<div class="col-sm-12">
<label for="tls" class="control-label text-left"> Display timestamps </label>
<label class="switch" style="margin-left: 20px"> <input type="checkbox" ng-model="$ctrl.displayTimestamps" /><i></i> </label>
<por-switch-field
label-class="'col-sm-2'"
checked="$ctrl.displayTimestamps"
label="'Display timestamps'"
on-change="($ctrl.handleDisplayTimestampsChange)"
></por-switch-field>
</div>
</div>
<div class="form-group">