Merge pull request #2681 from thornbill/toast-cleanup

Cleanup toasts
This commit is contained in:
Bill Thornton
2021-05-26 15:51:39 -04:00
committed by GitHub
12 changed files with 27 additions and 82 deletions
+2 -2
View File
@@ -122,9 +122,9 @@ export function processErrorResponse(response) {
status = response.statusText;
}
alert({
baseAlert({
title: status,
message: response.headers ? response.headers.get('X-Application-Error-Code') : null
text: response.headers ? response.headers.get('X-Application-Error-Code') : null
});
}
-2
View File
@@ -33,7 +33,6 @@ import '../legacy/focusPreventScroll';
import '../legacy/vendorStyles';
import SyncPlay from '../components/syncPlay/core';
import { playbackManager } from '../components/playback/playbackmanager';
import SyncPlayToasts from '../components/syncPlay/ui/syncPlayToasts';
import SyncPlayNoActivePlayer from '../components/syncPlay/ui/players/NoActivePlayer';
import SyncPlayHtmlVideoPlayer from '../components/syncPlay/ui/players/HtmlVideoPlayer';
import SyncPlayHtmlAudioPlayer from '../components/syncPlay/ui/players/HtmlAudioPlayer';
@@ -169,7 +168,6 @@ function initSyncPlay() {
// Start SyncPlay.
const apiClient = ServerConnections.currentApiClient();
if (apiClient) SyncPlay.Manager.init(apiClient);
SyncPlayToasts.init();
// FIXME: Multiple apiClients?
Events.on(ServerConnections, 'apiclientcreated', (e, newApiClient) => SyncPlay.Manager.init(newApiClient));