diff --git a/app/components-react/pages/RecordingHistory.tsx b/app/components-react/pages/RecordingHistory.tsx index e7a34e3812e3..f018e0c1998e 100644 --- a/app/components-react/pages/RecordingHistory.tsx +++ b/app/components-react/pages/RecordingHistory.tsx @@ -293,7 +293,11 @@ export function RecordingHistory() {
{formattedTimestamp(recording.timestamp)} - showFile(recording.filename)} className={styles.filename}> + showFile(recording.filename)} + className={styles.filename} + > {recording.filename} diff --git a/app/components-react/root/NotificationsArea.tsx b/app/components-react/root/NotificationsArea.tsx index 4307621658fe..5d27c49d630f 100644 --- a/app/components-react/root/NotificationsArea.tsx +++ b/app/components-react/root/NotificationsArea.tsx @@ -48,7 +48,7 @@ class NotificationsModule { message .info({ - content: , + content: , duration: notif.lifeTime === -1 ? 0 : notif.lifeTime / 1000, key: `${notif.message}${notif.date}`, onClick: () => this.clickNotif(), diff --git a/app/components-react/root/StudioFooter.tsx b/app/components-react/root/StudioFooter.tsx index 3f57fe081afc..8619c748836c 100644 --- a/app/components-react/root/StudioFooter.tsx +++ b/app/components-react/root/StudioFooter.tsx @@ -4,7 +4,7 @@ import { EStreamQuality } from '../../services/performance'; import { EStreamingState, EReplayBufferState, ERecordingState } from '../../services/streaming'; import { Services } from '../service-provider'; import { $t } from '../../services/i18n'; -import { useVuex } from '../hooks'; +import { useDebounce, useVuex } from '../hooks'; import styles from './StudioFooter.m.less'; import PerformanceMetrics from '../shared/PerformanceMetrics'; import TestWidgets from './TestWidgets'; @@ -42,9 +42,12 @@ export default function StudioFooterComponent() { StreamingService.views.supports('stream-schedule') && !RecordingModeService.views.isRecordingModeEnabled, streamQuality: PerformanceService.views.streamQuality, - replayBufferOffline: StreamingService.state.replayBufferStatus === EReplayBufferState.Offline, - replayBufferStopping: StreamingService.state.replayBufferStatus === EReplayBufferState.Stopping, - replayBufferSaving: StreamingService.state.replayBufferStatus === EReplayBufferState.Saving, + replayBufferOffline: + StreamingService.state.status.horizontal.replayBuffer === EReplayBufferState.Offline, + replayBufferStopping: + StreamingService.state.status.horizontal.replayBuffer === EReplayBufferState.Stopping, + replayBufferSaving: + StreamingService.state.status.horizontal.replayBuffer === EReplayBufferState.Saving, recordingModeEnabled: RecordingModeService.views.isRecordingModeEnabled, replayBufferEnabled: SettingsService.views.values.Output.RecRB, })); @@ -83,7 +86,7 @@ export default function StudioFooterComponent() { } function toggleReplayBuffer() { - if (StreamingService.state.replayBufferStatus === EReplayBufferState.Offline) { + if (replayBufferOffline) { StreamingService.actions.startReplayBuffer(); } else { StreamingService.actions.stopReplayBuffer(); @@ -197,7 +200,7 @@ function RecordingButton() { const { StreamingService } = Services; const { isRecording, recordingStatus } = useVuex(() => ({ isRecording: StreamingService.views.isRecording, - recordingStatus: StreamingService.state.recordingStatus, + recordingStatus: StreamingService.state.status.horizontal.recording, })); function toggleRecording() { @@ -214,7 +217,7 @@ function RecordingButton() { >