From 2696eeecd3c75327a68ac61c92533bcb88509fe4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Ml=C3=A1dek?= Date: Wed, 18 Aug 2021 12:41:22 +0200 Subject: [PATCH] [ui] rudimentary edit mode --- ui/src/components/AttributeView.vue | 4 +- ui/src/components/TextInput.vue | 5 ++ ui/src/components/widgets/Table.vue | 13 ++--- ui/src/views/Browse.vue | 79 ++++++++++++++++++----------- ui/src/views/Inspect.vue | 8 ++- 5 files changed, 67 insertions(+), 42 deletions(-) diff --git a/ui/src/components/AttributeView.vue b/ui/src/components/AttributeView.vue index 613b04d..fa248dd 100644 --- a/ui/src/components/AttributeView.vue +++ b/ui/src/components/AttributeView.vue @@ -24,7 +24,7 @@ :is="component.name" v-bind="component.props" :attributes="attributes" - :insertable="insertable" + :editable="editable" :reverse="reverse" @edit="processChange" /> @@ -63,7 +63,7 @@ export default defineComponent({ type: String, required: false, }, - insertable: { + editable: { type: Boolean, default: false, }, diff --git a/ui/src/components/TextInput.vue b/ui/src/components/TextInput.vue index 2e59a5a..c86293b 100644 --- a/ui/src/components/TextInput.vue +++ b/ui/src/components/TextInput.vue @@ -1,6 +1,7 @@ @@ -104,11 +126,6 @@ export default defineComponent({ position: absolute; right: 0; } - - &.disabled { - opacity: 0.5; - pointer-events: none; - } } } diff --git a/ui/src/views/Inspect.vue b/ui/src/views/Inspect.vue index 30f9906..e4951c2 100644 --- a/ui/src/views/Inspect.vue +++ b/ui/src/views/Inspect.vue @@ -10,6 +10,7 @@