Page Menu
Home
DevCentral
Search
Configure Global Search
Log In
Files
F3744321
D2612.id6589.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
892 B
Referenced Files
None
Subscribers
None
D2612.id6589.diff
View Options
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
Details
Attached
Mime Type
text/plain
Expires
Sat, Nov 16, 04:39 (22 h, 2 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2247007
Default Alt Text
D2612.id6589.diff (892 B)
Attached To
Mode
D2612: Improve scalar values
Attached
Detach File
Event Timeline
Log In to Comment