feat: persist tags expanded state
This commit is contained in:
@@ -267,6 +267,12 @@ export class TagsState {
|
||||
this.selected_ = tag;
|
||||
}
|
||||
|
||||
public setExpanded(tag: SNTag, exapnded: boolean) {
|
||||
this.application.changeAndSaveItem<TagMutator>(tag.uuid, (mutator) => {
|
||||
mutator.expanded = exapnded;
|
||||
});
|
||||
}
|
||||
|
||||
public get selectedUuid(): UuidString | undefined {
|
||||
return this.selected_?.uuid;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user