Make it possible to permanently dismiss the web banner from the settings (#2021)
* Make it possible to include a setting only on the Settings dialog, not also in the command bar. * Add web-only setting to permanently dismiss banner * Honor the dismiss web banner setting * Remove unused state from useStore * Make the banner only appear in production builds again
This commit is contained in:
@ -135,6 +135,15 @@ export function createSettings() {
|
||||
onboardingStatus: new Setting<string>({
|
||||
defaultValue: '',
|
||||
validate: (v) => typeof v === 'string',
|
||||
hideOnPlatform: 'both',
|
||||
}),
|
||||
/** Permanently dismiss the banner warning to download the desktop app. */
|
||||
dismissWebBanner: new Setting<boolean>({
|
||||
defaultValue: false,
|
||||
description:
|
||||
'Permanently dismiss the banner warning to download the desktop app.',
|
||||
validate: (v) => typeof v === 'boolean',
|
||||
hideOnPlatform: 'desktop',
|
||||
}),
|
||||
projectDirectory: new Setting<string>({
|
||||
defaultValue: '',
|
||||
|
Reference in New Issue
Block a user