feat(views/table): actually add attributes

This commit is contained in:
Elian Doran
2025-06-27 22:43:29 +03:00
parent fe1dbb4cbf
commit 0fb0be4ffc
5 changed files with 30 additions and 14 deletions

View File

@@ -3,11 +3,12 @@ import froca from "./froca.js";
import type FNote from "../entities/fnote.js";
import type { AttributeRow } from "./load_results.js";
async function addLabel(noteId: string, name: string, value: string = "") {
async function addLabel(noteId: string, name: string, value: string = "", isInheritable = false) {
await server.put(`notes/${noteId}/attribute`, {
type: "label",
name: name,
value: value
value: value,
isInheritable
});
}