diff --git a/src/app/Archives/AllArchivedRecordingsTable.tsx b/src/app/Archives/AllArchivedRecordingsTable.tsx index c56e937070..96d0219759 100644 --- a/src/app/Archives/AllArchivedRecordingsTable.tsx +++ b/src/app/Archives/AllArchivedRecordingsTable.tsx @@ -14,7 +14,7 @@ * limitations under the License. */ import { ErrorView } from '@app/ErrorView/ErrorView'; -import { isAuthFail } from '@app/ErrorView/types'; +import { authFailMessage, isAuthFail } from '@app/ErrorView/types'; import { ArchivedRecordingsTable } from '@app/Recordings/ArchivedRecordingsTable'; import { LoadingView } from '@app/Shared/Components/LoadingView'; import { ArchivedRecording, RecordingDirectory, Target, NotificationCategory } from '@app/Shared/Services/api.types'; @@ -148,6 +148,14 @@ export const AllArchivedRecordingsTable: React.FC { + addSubscription( + context.target.authFailure().subscribe(() => { + setErrorMessage(authFailMessage); + }), + ); + }, [context, context.target, setErrorMessage, addSubscription]); + React.useEffect(() => { if (!context.settings.autoRefreshEnabled()) { return; diff --git a/src/app/Archives/AllTargetsArchivedRecordingsTable.tsx b/src/app/Archives/AllTargetsArchivedRecordingsTable.tsx index 8b7dd4db0a..e07ce82ed7 100644 --- a/src/app/Archives/AllTargetsArchivedRecordingsTable.tsx +++ b/src/app/Archives/AllTargetsArchivedRecordingsTable.tsx @@ -108,6 +108,7 @@ export const AllTargetsArchivedRecordingsTable: React.FC { setIsLoading(false); + setErrorMessage(''); setArchivesForTargets( targetNodes.map((node) => { const target: Target = { @@ -122,7 +123,7 @@ export const AllTargetsArchivedRecordingsTable: React.FC