Merge pull request #3296 from crystalcommunication/pr-custom-domain-auto

Fix auto theme for status pages on custom domains
This commit is contained in:
Louis Lam 2023-07-03 15:48:38 +08:00 committed by GitHub
commit 4fe0891a60
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -30,6 +30,9 @@ export default {
theme() {
// As entry can be status page now, set forceStatusPageTheme to true to use status page theme
if (this.forceStatusPageTheme) {
if (this.statusPageTheme === "auto") {
return this.system;
}
return this.statusPageTheme;
}