Commit 15d2de6 1 parent 7f068bd commit 15d2de6 Copy full SHA for 15d2de6
File tree 2 files changed +11
-9
lines changed
2 files changed +11
-9
lines changed Original file line number Diff line number Diff line change @@ -342,19 +342,21 @@ const menudata = computed<MenuItemData[]>(() => [
342
342
{
343
343
type: " button" ,
344
344
label: " 元に戻す" ,
345
- onClick : () => {
346
- if (uiLocked .value ) return ;
347
- store .dispatch (" UNDO" , { editor: props .editor });
345
+ onClick : async () => {
346
+ if (! uiLocked .value ) {
347
+ await store .dispatch (" UNDO" , { editor: props .editor });
348
+ }
348
349
},
349
350
disabled: ! canUndo .value ,
350
351
disableWhenUiLocked: true ,
351
352
},
352
353
{
353
354
type: " button" ,
354
355
label: " やり直す" ,
355
- onClick : () => {
356
- if (uiLocked .value ) return ;
357
- store .dispatch (" REDO" , { editor: props .editor });
356
+ onClick : async () => {
357
+ if (! uiLocked .value ) {
358
+ await store .dispatch (" REDO" , { editor: props .editor });
359
+ }
358
360
},
359
361
disabled: ! canRedo .value ,
360
362
disableWhenUiLocked: true ,
Original file line number Diff line number Diff line change @@ -2024,9 +2024,9 @@ export const singingStore = createPartialStore<SingingStoreTypes>({
2024
2024
} ,
2025
2025
2026
2026
COMMAND_CUT_NOTES_TO_CLIPBOARD : {
2027
- action ( { dispatch } ) {
2028
- dispatch ( "COPY_NOTES_TO_CLIPBOARD" ) ;
2029
- dispatch ( "COMMAND_REMOVE_SELECTED_NOTES" ) ;
2027
+ async action ( { dispatch } ) {
2028
+ await dispatch ( "COPY_NOTES_TO_CLIPBOARD" ) ;
2029
+ await dispatch ( "COMMAND_REMOVE_SELECTED_NOTES" ) ;
2030
2030
} ,
2031
2031
} ,
2032
2032
You can’t perform that action at this time.
0 commit comments