From 5c251055b5fe70a3c0aa6c78c014adcd32387478 Mon Sep 17 00:00:00 2001 From: gsovereignty Date: Tue, 23 Jan 2024 23:11:15 +0000 Subject: [PATCH] problem: can't change problem parent --- src/components/novoproblems/ProblemView.svelte | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/src/components/novoproblems/ProblemView.svelte b/src/components/novoproblems/ProblemView.svelte index f4daa99..c41b5ea 100644 --- a/src/components/novoproblems/ProblemView.svelte +++ b/src/components/novoproblems/ProblemView.svelte @@ -23,10 +23,11 @@ Tab, Tabs, Tag, + TextInput, Tile, UnorderedList } from "carbon-components-svelte"; - import { Category, Chat, Lightning, XAxis, YAxis } from "carbon-icons-svelte"; + import { Category, Chat, Edit, Lightning, XAxis, YAxis } from "carbon-icons-svelte"; import { derived } from "svelte/store"; import { rootProblem } from "../../settings"; import CommentUser from "../comments/CommentUser.svelte"; @@ -157,7 +158,7 @@ } ); - function PublishModification() { + function PublishModification() {no PublishProblem(problem, getParents(problem)!) .then((e) => { console.log(e); @@ -167,6 +168,9 @@ throw new Error(x); }); } + + let newParent = "" + let edit = false;