mirror of
https://github.com/koloml/furbooru-tagging-assistant.git
synced 2025-12-25 07:22:58 +00:00
Added option to turn on/off separation of tags by custom category
This commit is contained in:
19
src/lib/extension/settings/TagSettings.ts
Normal file
19
src/lib/extension/settings/TagSettings.ts
Normal 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));
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user