mirror of
https://github.com/directus/directus.git
synced 2026-04-25 03:00:53 -04:00
add missing defaults and clean code
This commit is contained in:
@@ -275,10 +275,9 @@ export default defineComponent({
|
||||
|
||||
function fillTemplate() {
|
||||
try {
|
||||
const parse = JSON.parse(props.template);
|
||||
emit('input', parse || props.template);
|
||||
emit('input', JSON.parse(props.template));
|
||||
} catch {
|
||||
// We won't stage invalid JSON
|
||||
emit('input', props.template);
|
||||
}
|
||||
}
|
||||
},
|
||||
@@ -302,12 +301,6 @@ export default defineComponent({
|
||||
text-align: right;
|
||||
}
|
||||
|
||||
::v-deep .CodeMirror {
|
||||
.CodeMirror-placeholder {
|
||||
color: var(--foreground-subdued);
|
||||
}
|
||||
}
|
||||
|
||||
.v-button {
|
||||
position: absolute;
|
||||
top: 10px;
|
||||
|
||||
@@ -57,5 +57,4 @@ export default defineInterface(({ i18n }) => ({
|
||||
},
|
||||
},
|
||||
],
|
||||
recommendedDisplays: ['raw'],
|
||||
}));
|
||||
|
||||
Reference in New Issue
Block a user