Skip to content

Commit

Permalink
Fixed section styles. Made backendUrl warning dismissible. (#1978)
Browse files Browse the repository at this point in the history
  • Loading branch information
azaslonov authored Oct 21, 2022
1 parent fb62ef0 commit d10f4af
Show file tree
Hide file tree
Showing 4 changed files with 1,942 additions and 3 deletions.
8 changes: 6 additions & 2 deletions src/components/app/app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,13 @@ export class App {

if (!settings["backendUrl"]) {
const developerPortalType = settings[SettingNames.developerPortalType] || DeveloperPortalType.selfHosted;

if (developerPortalType === DeveloperPortalType.selfHosted) {
this.viewManager.addToast("Warning", WarningBackendUrlMissing);
}
const toast = this.viewManager.notifyInfo("Settings", WarningBackendUrlMissing, [{
title: "Got it",
action: async () => this.viewManager.removeToast(toast)
}]);
}
}

try {
Expand Down
Loading

0 comments on commit d10f4af

Please sign in to comment.