mirror of
https://github.com/aaif-goose/goose.git
synced 2026-07-03 14:10:03 +02:00
re-show restart card after subsequent credential changes
Reset the dismissed ref when navigating back to Providers so new credential changes surface the restart notice again. Signed-off-by: morgmart <98432065+morgmart@users.noreply.github.com>
This commit is contained in:
@@ -140,7 +140,9 @@ export function SettingsModal({
|
||||
}, [showRestartCard]);
|
||||
|
||||
useEffect(() => {
|
||||
if (activeSection !== "providers" && showRestartCard) {
|
||||
if (activeSection === "providers") {
|
||||
restartDismissedRef.current = false;
|
||||
} else if (showRestartCard) {
|
||||
setRestartCardVisible(false);
|
||||
setShowRestartCard(false);
|
||||
restartDismissedRef.current = true;
|
||||
|
||||
Reference in New Issue
Block a user