diff options
| author | Leonardo Bishop <me@leonardobishop.com> | 2024-03-15 00:13:40 +0000 |
|---|---|---|
| committer | Leonardo Bishop <me@leonardobishop.com> | 2024-03-15 00:13:40 +0000 |
| commit | c9aefa81ca1950121d2357fc66afe15eb400f537 (patch) | |
| tree | fd6196b55626cea8101cd5a4a00cb2a00d8a495b /components/editor/quest/modal/EditorQuestModalYaml.vue | |
| parent | 1dd5d0fa8bb2ae794b263d1629a662166a9b9d08 (diff) | |
Fix eslint errors
Diffstat (limited to 'components/editor/quest/modal/EditorQuestModalYaml.vue')
| -rw-r--r-- | components/editor/quest/modal/EditorQuestModalYaml.vue | 23 |
1 files changed, 15 insertions, 8 deletions
diff --git a/components/editor/quest/modal/EditorQuestModalYaml.vue b/components/editor/quest/modal/EditorQuestModalYaml.vue index 365055c..c7c4936 100644 --- a/components/editor/quest/modal/EditorQuestModalYaml.vue +++ b/components/editor/quest/modal/EditorQuestModalYaml.vue @@ -6,7 +6,7 @@ const emit = defineEmits(['delete']); const props = defineProps({ questId: { required: true, - type: String + type: String, }, }); @@ -18,16 +18,16 @@ const yamlString = ref(''); const open = () => { const quest = session.getQuestById(props.questId); if (!quest) { - return + return; } const mappedObject = mapJsonQuestToYamlObject(quest); yamlString.value = stringify(mappedObject); showModal.value = true; -} +}; defineExpose({ - open -}) + open, +}); </script> <template> @@ -36,12 +36,19 @@ defineExpose({ <h2>YAML</h2> </template> - <p>YAML file for <code>{{ props.questId }}</code></p> + <p> + YAML file for <code>{{ props.questId }}</code> + </p> <textarea rows="20" :value="yamlString" readonly /> <div id="confirm" class="control-group"> - <Button type="solid" :icon="['fas', 'check']" :label="'Close'" @click="showModal = false"></Button> + <Button + type="solid" + :icon="['fas', 'check']" + :label="'Close'" + @click="showModal = false" + ></Button> </div> </Modal> </template> @@ -56,4 +63,4 @@ defineExpose({ textarea { width: 100%; } -</style>
\ No newline at end of file +</style> |
