problems: hide unrelated view options

This commit is contained in:
Alexander Zobnin
2019-02-13 22:13:34 +03:00
parent 8a9c5e6e99
commit 612052ed33

View File

@@ -153,7 +153,8 @@
checked="ctrl.panel.problemTimeline" checked="ctrl.panel.problemTimeline"
on-change="ctrl.render()"> on-change="ctrl.render()">
</gf-form-switch> </gf-form-switch>
<gf-form-switch class="gf-form" <gf-form-switch ng-if="ctrl.panel.layout !== 'table'"
class="gf-form"
label-class="width-10" label-class="width-10"
label="Highlight background" label="Highlight background"
checked="ctrl.panel.highlightBackground" checked="ctrl.panel.highlightBackground"
@@ -191,7 +192,7 @@
ng-model="ctrl.panel.lastChangeFormat" ng-model="ctrl.panel.lastChangeFormat"
ng-change="ctrl.render()"> ng-change="ctrl.render()">
</div> </div>
<div class="gf-form"> <div class="gf-form" ng-if="ctrl.panel.layout === 'table'">
<div class="gf-form-button"> <div class="gf-form-button">
<button class="btn btn-inverse width-16 panel-options-button" ng-click="ctrl.resetResizedColumns()"> <button class="btn btn-inverse width-16 panel-options-button" ng-click="ctrl.resetResizedColumns()">
Reset resized columns Reset resized columns