@qrvey/utils 1.7.0-5 → 1.7.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -12,7 +12,9 @@ const getScopeSettings_1 = require("./getScopeSettings");
|
|
|
12
12
|
function getScopeColorSetting(settings, scope) {
|
|
13
13
|
const defaultColor = "#C0C0C0";
|
|
14
14
|
const scopeSetting = (0, getScopeSettings_1.getScopeSettings)(settings, scope);
|
|
15
|
-
return
|
|
15
|
+
return settings.filterPanel.colorized &&
|
|
16
|
+
!(0, isEmpty_1.isEmpty)(scopeSetting) &&
|
|
17
|
+
scopeSetting.colorized
|
|
16
18
|
? scopeSetting.color
|
|
17
19
|
: defaultColor;
|
|
18
20
|
}
|
|
@@ -9,7 +9,9 @@ import { getScopeSettings } from "./getScopeSettings";
|
|
|
9
9
|
export function getScopeColorSetting(settings, scope) {
|
|
10
10
|
const defaultColor = "#C0C0C0";
|
|
11
11
|
const scopeSetting = getScopeSettings(settings, scope);
|
|
12
|
-
return
|
|
12
|
+
return settings.filterPanel.colorized &&
|
|
13
|
+
!isEmpty(scopeSetting) &&
|
|
14
|
+
scopeSetting.colorized
|
|
13
15
|
? scopeSetting.color
|
|
14
16
|
: defaultColor;
|
|
15
17
|
}
|