update css for disabled filters; remove strikethrough

This commit is contained in:
Andrew Dolgov 2018-12-08 15:49:52 +03:00
parent 8822134685
commit 4887db9820
6 changed files with 22 additions and 17 deletions

View File

@ -1782,9 +1782,11 @@ body#sharepopup input {
float: right;
margin-right: 16px;
}
.flat .dijitTree .labelParam.filterDisabled,
.flat .dijitTree .dijitTreeLabel.filterDisabled {
text-decoration: line-through;
.flat .dijitTree .dijitTreeRow.filterDisabled {
opacity: 0.5;
}
.flat .dijitTree .dijitTreeRow.filterDisabled .filterRules {
filter: saturate(0%);
}
.flat .dijitTree .feedParam {
float: right;

File diff suppressed because one or more lines are too long

View File

@ -74,14 +74,18 @@
position : relative;
top : -2px;
}
.labelParam {
float: right;
margin-right: 16px;
}
.labelParam.filterDisabled,
.dijitTreeLabel.filterDisabled {
text-decoration : line-through;
.dijitTreeRow.filterDisabled {
opacity : 0.5;
.filterRules {
filter : saturate(0%);
}
}
.feedParam {

View File

@ -55,13 +55,10 @@ define(["dojo/_base/declare", "dojo/dom-construct", "lib/CheckBoxTree"], functio
getIconClass: function (item, opened) {
return (!item || this.model.mayHaveChildren(item)) ? (opened ? "dijitFolderOpened" : "dijitFolderClosed") : "invisible";
},
getLabelClass: function (item, opened) {
const enabled = this.model.store.getValue(item, 'enabled');
return (enabled != false) ? "dijitTreeLabel labelFixedLength" : "dijitTreeLabel labelFixedLength filterDisabled";
},
getRowClass: function (item, opened) {
return (!item.error || item.error == '') ? "dijitTreeRow" :
"dijitTreeRow Error";
const enabled = this.model.store.getValue(item, 'enabled');
return enabled ? "dijitTreeRow" : "dijitTreeRow filterDisabled";
},
checkItemAcceptance: function(target, source, position) {
const item = dijit.getEnclosingWidget(target).item;

View File

@ -1782,9 +1782,11 @@ body#sharepopup input {
float: right;
margin-right: 16px;
}
.flat .dijitTree .labelParam.filterDisabled,
.flat .dijitTree .dijitTreeLabel.filterDisabled {
text-decoration: line-through;
.flat .dijitTree .dijitTreeRow.filterDisabled {
opacity: 0.5;
}
.flat .dijitTree .dijitTreeRow.filterDisabled .filterRules {
filter: saturate(0%);
}
.flat .dijitTree .feedParam {
float: right;

File diff suppressed because one or more lines are too long