mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-05-25 15:45:10 +02:00
fix: resolve failure to rename macro after creation
Signed-off-by: luckfox-eng29 <eng29@luckfox.com>
This commit is contained in:
@@ -117,16 +117,17 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
||||
disabled={isDeleting}
|
||||
/>
|
||||
</div>
|
||||
<MacroForm
|
||||
initialData={macro}
|
||||
onSubmit={handleUpdateMacro}
|
||||
onCancel={() => {
|
||||
console.log("MacroForm onCancel")
|
||||
onMenuSelect("index");
|
||||
}}
|
||||
isSubmitting={isUpdating}
|
||||
|
||||
/>
|
||||
<div onKeyUp={e => e.stopPropagation()} onKeyDown={e => e.stopPropagation()}>
|
||||
<MacroForm
|
||||
initialData={macro}
|
||||
onSubmit={handleUpdateMacro}
|
||||
onCancel={() => {
|
||||
console.log("MacroForm onCancel")
|
||||
onMenuSelect("index");
|
||||
}}
|
||||
isSubmitting={isUpdating}
|
||||
/>
|
||||
</div>
|
||||
|
||||
<ConfirmDialog
|
||||
open={showDeleteConfirm}
|
||||
@@ -145,4 +146,4 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
||||
</div>
|
||||
);
|
||||
}
|
||||
export default SettingsMacrosEdit;
|
||||
export default SettingsMacrosEdit;
|
||||
|
||||
Reference in New Issue
Block a user