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,16 +117,17 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
|||||||
disabled={isDeleting}
|
disabled={isDeleting}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<MacroForm
|
<div onKeyUp={e => e.stopPropagation()} onKeyDown={e => e.stopPropagation()}>
|
||||||
initialData={macro}
|
<MacroForm
|
||||||
onSubmit={handleUpdateMacro}
|
initialData={macro}
|
||||||
onCancel={() => {
|
onSubmit={handleUpdateMacro}
|
||||||
console.log("MacroForm onCancel")
|
onCancel={() => {
|
||||||
onMenuSelect("index");
|
console.log("MacroForm onCancel")
|
||||||
}}
|
onMenuSelect("index");
|
||||||
isSubmitting={isUpdating}
|
}}
|
||||||
|
isSubmitting={isUpdating}
|
||||||
/>
|
/>
|
||||||
|
</div>
|
||||||
|
|
||||||
<ConfirmDialog
|
<ConfirmDialog
|
||||||
open={showDeleteConfirm}
|
open={showDeleteConfirm}
|
||||||
@@ -145,4 +146,4 @@ const SettingsMacrosEdit: React.FC<MenuComponentProps> = ({ onMenuSelect,macroId
|
|||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
export default SettingsMacrosEdit;
|
export default SettingsMacrosEdit;
|
||||||
|
|||||||
Reference in New Issue
Block a user