Page MenuHomeDevCentral

D2612.diff
No OneTemporary

D2612.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
@@ -222,7 +222,7 @@
}
if (this.isScalar(data)) {
- return data
+ return `<span class="scalar">${data}</span>`
}
if (typeof data === "object") {
if (data.constructor.name === "Array") {
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,9 +127,16 @@
}
+ .config-error {
+ font-weight: bold;
+ }
+
.config-error, .null {
color: $warning-color;
- font-weight: bold;
+ }
+
+ .scalar {
+ white-space: pre;
}
.null::before {

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 16, 02:33 (21 h, 53 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247007
Default Alt Text
D2612.diff (892 B)

Event Timeline