Page MenuHomeDevCentral

D2563.id6475.diff
No OneTemporary

D2563.id6475.diff

diff --git a/src/assets/js/salt-config.js b/src/assets/js/salt-config.js
--- a/src/assets/js/salt-config.js
+++ b/src/assets/js/salt-config.js
@@ -213,6 +213,10 @@
// roles/core/rc/files/periodic.conf
dump: function (data) {
+ if (data === null) {
+ return `<span class="null">NULL</span>`
+ }
+
if (typeof data === "string" && data.startsWith("salt://")) {
return this.resolveSaltLink(data)
}
diff --git a/src/assets/scss/components/_salt-config.scss b/src/assets/scss/components/_salt-config.scss
--- a/src/assets/scss/components/_salt-config.scss
+++ b/src/assets/scss/components/_salt-config.scss
@@ -127,11 +127,15 @@
}
- .config-error {
+ .config-error, .null {
color: $warning-color;
font-weight: bold;
}
+ .null::before {
+ content: "∅ ";
+ }
+
.config-error::before {
content: "🔥 ";
}

File Metadata

Mime Type
text/plain
Expires
Fri, Nov 15, 07:51 (3 h, 38 s)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2246214
Default Alt Text
D2563.id6475.diff (972 B)

Event Timeline