Improve logging more, fix credentials sync issues, migrate more to be toasts

This commit is contained in:
LukeGus
2025-09-09 18:31:29 -05:00
parent 4c33b43a0f
commit 797e022d6e
26 changed files with 1650 additions and 611 deletions

View File

@@ -23,11 +23,7 @@ export function HostManager({onSelectView, isTopbarOpen}: HostManagerProps): Rea
};
const handleFormSubmit = (updatedHost?: SSHHost) => {
if (updatedHost) {
setEditingHost(updatedHost);
} else {
setEditingHost(null);
}
setEditingHost(null);
setActiveTab("host_viewer");
};
@@ -44,10 +40,11 @@ export function HostManager({onSelectView, isTopbarOpen}: HostManagerProps): Rea
const handleTabChange = (value: string) => {
setActiveTab(value);
if (value === "host_viewer") {
// Reset editing states when switching away from edit tabs
if (value !== "add_host") {
setEditingHost(null);
}
if (value === "credentials") {
if (value !== "add_credential") {
setEditingCredential(null);
}
};