Skip to content

Commit

Permalink
feat(ui): improvements of no code editor (#6916)
Browse files Browse the repository at this point in the history
* feat(ui): improve the one of task section

* chore(ui): change expected prop type to match what is sent

* chore(ui): allow number input fields to span full width

* chore(ui): remove disabled parameter from buttons which don't need it
  • Loading branch information
MilosPaunovic authored Jan 23, 2025
1 parent 9781ff1 commit 9501880
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 12 deletions.
2 changes: 1 addition & 1 deletion ui/src/components/code/components/inputs/InputPair.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
const emits = defineEmits(["update:modelValue"]);
const props = defineProps({
modelValue: {
type: Array as PropType<PairField["value"][]>,
type: Object as PropType<PairField["value"][]>,
default: undefined,
},
label: {type: String, required: true},
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/flows/tasks/TaskComplex.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<el-input :model-value="JSON.stringify(values)" :disabled="true">
<el-input :model-value="JSON.stringify(values)">
<template #append>
<el-button
:icon="TextSearch"
Expand Down
5 changes: 1 addition & 4 deletions ui/src/components/flows/tasks/TaskCondition.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<el-input
:model-value="JSON.stringify(values)"
:disabled="true"
>
<el-input :model-value="JSON.stringify(values)">
<template #append>
<el-button :icon="TextSearch" @click="isOpen = true" />
</template>
Expand Down
5 changes: 1 addition & 4 deletions ui/src/components/flows/tasks/TaskTask.vue
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
<template>
<el-input
:model-value="JSON.stringify(values)"
:disabled="true"
>
<el-input :model-value="JSON.stringify(values)">
<template #append>
<el-button :icon="TextSearch" @click="isOpen = true" />
</template>
Expand Down
3 changes: 2 additions & 1 deletion ui/src/components/settings/BasicSettings.vue
Original file line number Diff line number Diff line change
Expand Up @@ -605,7 +605,8 @@
};
</script>
<style>
.el-input-number {
.settings-wrapper .el-input-number {
max-width: 20vw;
}
Expand Down
2 changes: 1 addition & 1 deletion ui/src/components/settings/components/Wrapper.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<el-row class="my-5">
<el-row class="my-5 settings-wrapper">
<el-col
:xs="layout(24, 0)"
:sm="layout(20, 2)"
Expand Down

0 comments on commit 9501880

Please sign in to comment.