From 0cb1365d94fec65b3972b0f2968b457feb6362ec Mon Sep 17 00:00:00 2001 From: Alexandre Rousseau Date: Tue, 17 Dec 2024 09:23:40 +0100 Subject: [PATCH] fix(ui): fix `CoreProgressBar` icon & description --- src/ui/public/components/progressbar.svg | 5 +++++ src/ui/src/components/core/content/CoreProgressBar.vue | 10 +++++----- 2 files changed, 10 insertions(+), 5 deletions(-) create mode 100644 src/ui/public/components/progressbar.svg diff --git a/src/ui/public/components/progressbar.svg b/src/ui/public/components/progressbar.svg new file mode 100644 index 000000000..6f1828f72 --- /dev/null +++ b/src/ui/public/components/progressbar.svg @@ -0,0 +1,5 @@ + + + + + diff --git a/src/ui/src/components/core/content/CoreProgressBar.vue b/src/ui/src/components/core/content/CoreProgressBar.vue index b3ac8b1e1..a150ebcf3 100644 --- a/src/ui/src/components/core/content/CoreProgressBar.vue +++ b/src/ui/src/components/core/content/CoreProgressBar.vue @@ -45,13 +45,13 @@ import { } from "@/renderer/sharedStyleFields"; const clickHandlerStub = ` -def handle_avatar_click(): - print("The avatar was clicked")`; +def handle_progress_bar_click(): + print("The progress bar was clicked")`; const description = "A component to display a progression."; const definition: WriterComponentDefinition = { - name: "ProgressBar", + name: "Progress Bar", description, category: "Content", allowedChildrenTypes: ["*"], @@ -67,7 +67,7 @@ const definition: WriterComponentDefinition = { default: "0.25", }, min: { - name: "Mininimum value", + name: "Minimum value", type: FieldType.Number, default: "0", }, @@ -93,7 +93,7 @@ const definition: WriterComponentDefinition = { }, events: { "wf-click": { - desc: "Triggered when the avatar is clicked.", + desc: "Triggered when the progress bar is clicked.", stub: clickHandlerStub.trim(), }, },