Skip to content

Commit

Permalink
add keydown action to confirming dialogs
Browse files Browse the repository at this point in the history
  • Loading branch information
juzeon committed Mar 25, 2024
1 parent c417ba9 commit c288dc0
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions frontend/src/components/index/WorkspaceNav.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ import {computed, ref} from "vue"
import {ExportWorkspace, ShareWorkspace} from "../../../wailsjs/go/main/App"
import Workspace = main.Workspace
import Preset = main.Preset
import GenerateImageResult = sydney.GenerateImageResult
import DataReference = main.DataReference
let props = defineProps<{
Expand Down Expand Up @@ -143,7 +142,8 @@ function shareWorkspace(workspace: Workspace) {
<v-dialog max-width="500" v-model="editWorkspaceDialog">
<v-card>
<v-card-text>
<v-text-field color="primary" label="Workspace Title" v-model="editWorkspaceTitle"></v-text-field>
<v-text-field color="primary" label="Workspace Title" @keydown.enter="confirmEditWorkspace"
v-model="editWorkspaceTitle"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/settings/PresetCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ function confirmRenamePreset() {
<v-card-title>Rename Preset</v-card-title>
<v-card-text>
<v-text-field label="Rename" :error-messages="renamePresetError" v-model="renamePresetName"
color="primary"></v-text-field>
color="primary" @keydown.enter="confirmRenamePreset"></v-text-field>
</v-card-text>
<v-card-actions>
<v-spacer></v-spacer>
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/components/settings/QuickResponseCard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ function confirmQuickResponse() {
<v-card :title="quickRespEditMode==='create'?'Create a Quick Response':'Edit the Quick Response'">
<v-card-text>
<v-text-field :error-messages="quickRespEditError" label="Quick Response"
v-model="quickRespEditText"
v-model="quickRespEditText" @keydown.enter="confirmQuickResponse"
color="primary"></v-text-field>
</v-card-text>
<v-card-actions>
Expand Down

0 comments on commit c288dc0

Please sign in to comment.