Added option to turn on/off separation of tags by custom category

This commit is contained in:
koloml committed 2025-03-10 03:18:03 +04:00
1 parent bedb18a6aa
commit 4f302faf45
3 files changed
+43

No files matched your search

+19
View File
@@ -0,0 +1,19 @@
import CacheableSettings from "$lib/extension/base/CacheableSettings";
interface TagSettingsFields {
groupSeparation: boolean;
}
export default class TagSettings extends CacheableSettings<TagSettingsFields> {
constructor() {
super("tag");
}
async resolveGroupSeparation() {
return this._resolveSetting("groupSeparation", false);
}
async setGroupSeparation(value: boolean) {
return this._writeSetting("groupSeparation", Boolean(value));
}
}