From 9fbf6839e0b4d73ee5a2b2f99075c538ff2efafa Mon Sep 17 00:00:00 2001 From: Keavon Chambers Date: Fri, 30 Jul 2021 15:45:49 -0700 Subject: [PATCH] Add "Sides" label to Shape Tool's options bar number input --- client/web/src/components/widgets/options/ToolOptions.vue | 2 +- client/web/src/components/widgets/widgets.ts | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/client/web/src/components/widgets/options/ToolOptions.vue b/client/web/src/components/widgets/options/ToolOptions.vue index e58a0b33a..37a564170 100644 --- a/client/web/src/components/widgets/options/ToolOptions.vue +++ b/client/web/src/components/widgets/options/ToolOptions.vue @@ -123,7 +123,7 @@ export default defineComponent({ props: {}, }, ], - Shape: [{ kind: "NumberInput", callback: this.setToolOptions, props: { value: 6, min: 3, isInteger: true } }], + Shape: [{ kind: "NumberInput", callback: this.setToolOptions, props: { value: 6, min: 3, isInteger: true, label: "Sides" } }], }; return { diff --git a/client/web/src/components/widgets/widgets.ts b/client/web/src/components/widgets/widgets.ts index 6cde104fd..2d17a9869 100644 --- a/client/web/src/components/widgets/widgets.ts +++ b/client/web/src/components/widgets/widgets.ts @@ -51,6 +51,8 @@ export interface NumberInputProps { unit?: string; unitIsHiddenWhenEditing?: boolean; displayDecimalPlaces?: number; + label?: string; + disabled?: boolean; } // Separator