update css for disabled filters; remove strikethrough

master
Andrew Dolgov 6 years ago
parent 8822134685
commit 4887db9820

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

File diff suppressed because one or more lines are too long

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

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

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

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save