Update src/app/services/calendar-settings-service.ts
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
This commit is contained in:
1 parent
3eb35854d4
commit
275512d443
1 file changed
+11
-2
@@ -48,10 +48,19 @@ export class CalendarSettingsService {
|
||||
}));
|
||||
}
|
||||
|
||||
get(id: string): WritableSignal<boolean> {
|
||||
return this.signals.get(id)!;
|
||||
/**
|
||||
* Returns the signal for the given setting ID, or undefined if not found.
|
||||
*/
|
||||
get(id: string): WritableSignal<boolean> | undefined {
|
||||
return this.signals.get(id);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns true if the setting with the given ID exists.
|
||||
*/
|
||||
has(id: string): boolean {
|
||||
return this.signals.has(id);
|
||||
}
|
||||
getDescription(id: string): string {
|
||||
return this.definitions.get(id)?.description ?? '';
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user