mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-21 18:53:37 +00:00
fix: add navigation to Update History from progress modal
The "View History" button in UpdateProgressModal now properly navigates to /settings/updates instead of just closing the modal. This completes the update flow UX - users can now seamlessly transition from update completion to viewing the full audit log.
This commit is contained in:
@@ -1,10 +1,12 @@
|
||||
import { Show, createSignal, createEffect, For } from 'solid-js';
|
||||
import { useNavigate } from '@solidjs/router';
|
||||
import { updateStore } from '@/stores/updates';
|
||||
import { UpdatesAPI, type UpdatePlan } from '@/api/updates';
|
||||
import { UpdateConfirmationModal } from './UpdateConfirmationModal';
|
||||
import { UpdateProgressModal } from './UpdateProgressModal';
|
||||
|
||||
export function UpdateBanner() {
|
||||
const navigate = useNavigate();
|
||||
const [isExpanded, setIsExpanded] = createSignal(false);
|
||||
const [updatePlan, setUpdatePlan] = createSignal<UpdatePlan | null>(null);
|
||||
const [showConfirmModal, setShowConfirmModal] = createSignal(false);
|
||||
@@ -296,8 +298,7 @@ export function UpdateBanner() {
|
||||
onClose={() => setShowProgressModal(false)}
|
||||
onViewHistory={() => {
|
||||
setShowProgressModal(false);
|
||||
// TODO: Navigate to Settings → Update History
|
||||
// For now, just close the modal
|
||||
navigate('/settings/updates');
|
||||
}}
|
||||
/>
|
||||
</Show>
|
||||
|
||||
Reference in New Issue
Block a user