-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
56da0ba
commit f987eea
Showing
7 changed files
with
90 additions
and
36 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
27 changes: 27 additions & 0 deletions
27
src/components/dialog/KnowledgeBaseRenameDocumentDialog.vue
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,27 @@ | ||
<template> | ||
<ltai-dialog title="Rename document" @save="emit('save', newName)"> | ||
<q-card-section horizontal> | ||
<q-card-section> | ||
<span>Name</span> | ||
<q-input v-model="newName" bg-color="secondary" input-class="text-light q-px-sm" outlined></q-input> | ||
</q-card-section> | ||
</q-card-section> | ||
</ltai-dialog> | ||
</template> | ||
<script lang="ts" setup> | ||
import LtaiDialog from 'components/libertai/LtaiDialog.vue'; | ||
import { ref, watch } from 'vue'; | ||
const props = defineProps<{ name: string }>(); | ||
const emit = defineEmits<{ save: [name: string] }>(); | ||
// Form values | ||
const newName = ref(''); | ||
watch( | ||
() => props.name, | ||
() => (newName.value = props.name), | ||
{ immediate: true }, | ||
); | ||
</script> |
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