diff --git a/CHANGELOG.md b/CHANGELOG.md index 5feaadc7..12518116 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ## [Unreleased] +### Added + +- Announcement dialog to indicate outage + ### Fixed - [Attempt] A bug where the lounge would randomly lose the session id, making it unable to cast, and spam the same error over and over diff --git a/playlet-lib/src/components/MainScene.bs b/playlet-lib/src/components/MainScene.bs index c49731db..d0bf72df 100644 --- a/playlet-lib/src/components/MainScene.bs +++ b/playlet-lib/src/components/MainScene.bs @@ -1,3 +1,4 @@ +import "Dialog/DialogUtils.bs" import "pkg:/components/EcpArgs.bs" import "pkg:/components/parts/AutoBind/AutoBind.part.bs" import "pkg:/components/parts/AutoBind/OnNodeReadyNoOp.bs" @@ -18,6 +19,7 @@ function MainSceneContainerChanged() InitEcpArgs() m.scene.signalBeacon("AppLaunchComplete") CopyLoadingMessagesToCache() + ShowAnnouncement() end function function StartWebServer() @@ -30,3 +32,7 @@ function StartWebServer() m.dialServer = m.top.findNode("DialServer") m.dialServer@.StartServer() end function + +function ShowAnnouncement() + DialogUtils.ShowDialog(`Invidious is currently experiencing a major outage affecting all public and private instances.\nPlaying videos might not work.\nPlease be patient while the issue is being resolved.\nWe apologize for the inconvenience.\nIssue url: https://github.com/iv-org/invidious/issues/4498`, "Announcement", true) +end function