mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-28 17:11:20 +02:00
fix: resolve failure to rename macro after creation
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -117,6 +117,7 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
|||||||
disabled={isDeleting}
|
disabled={isDeleting}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
|
<div onKeyUp={e => e.stopPropagation()} onKeyDown={e => e.stopPropagation()}>
|
||||||
<MacroForm
|
<MacroForm
|
||||||
initialData={macro}
|
initialData={macro}
|
||||||
onSubmit={handleUpdateMacro}
|
onSubmit={handleUpdateMacro}
|
||||||
@@ -125,8 +126,8 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
|||||||
onMenuSelect("index");
|
onMenuSelect("index");
|
||||||
}}
|
}}
|
||||||
isSubmitting={isUpdating}
|
isSubmitting={isUpdating}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
open={showDeleteConfirm}
|
open={showDeleteConfirm}
|
||||||
|
|||||||
Reference in New Issue
Block a user