mirror of
https://github.com/streetwriters/notesnook.git
synced 2025-12-24 07:29:30 +01:00
web: new sidebar ui
Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
@@ -112,6 +112,12 @@ export class Colors implements ICollection {
|
||||
);
|
||||
}
|
||||
|
||||
async count(id: string) {
|
||||
const color = await this.color(id);
|
||||
if (!color) return;
|
||||
return this.db.relations.from(color, "note").count();
|
||||
}
|
||||
|
||||
async remove(...ids: string[]) {
|
||||
await this.db.transaction(async () => {
|
||||
await this.db.relations.unlinkOfType("color", ids);
|
||||
|
||||
Reference in New Issue
Block a user