-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add confirm note creation setting
- Loading branch information
1 parent
c299cba
commit 792901f
Showing
4 changed files
with
69 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
<script setup lang="ts"> | ||
import ObsidianSetting from "../obsidian/ObsidianSetting.vue"; | ||
import ObsidianButton from "../obsidian/ObsidianButton.vue"; | ||
defineProps<{ noteName: string; journalName: string }>(); | ||
defineEmits<{ | ||
(event: "confirm", value: boolean): void; | ||
(event: "close"): void; | ||
}>(); | ||
</script> | ||
|
||
<template> | ||
<ObsidianSetting name="About to create new note"></ObsidianSetting> | ||
<ObsidianSetting name="Journal"> | ||
{{ journalName }} | ||
</ObsidianSetting> | ||
<ObsidianSetting name="Note"> | ||
{{ noteName }} | ||
</ObsidianSetting> | ||
<ObsidianSetting> | ||
<ObsidianButton @click="$emit('confirm', false)">Cancel</ObsidianButton> | ||
<ObsidianButton cta @click="$emit('confirm', true)">Confirm</ObsidianButton> | ||
</ObsidianSetting> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters