Skip to content

Commit

Permalink
fix: update select events name
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jan 24, 2024
1 parent c0faf76 commit da2b1b7
Show file tree
Hide file tree
Showing 6 changed files with 14 additions and 15 deletions.
1 change: 0 additions & 1 deletion src/components.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,6 @@ declare module 'vue' {
ElDropdownMenu: (typeof import('element-plus/es'))['ElDropdownMenu']
ElForm: (typeof import('element-plus/es'))['ElForm']
ElFormItem: (typeof import('element-plus/es'))['ElFormItem']
ElIcon: (typeof import('element-plus/es'))['ElIcon']
ElInput: (typeof import('element-plus/es'))['ElInput']
ElLink: (typeof import('element-plus/es'))['ElLink']
ElPagination: (typeof import('element-plus/es'))['ElPagination']
Expand Down
2 changes: 1 addition & 1 deletion src/components/EditorOperatorArgument.vue
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
:ref="argument.id"
:model-value="selectedArgumentValue"
:options="argumentOptions"
@input="
@update:model-value="
value =>
updateTemplateAndVariables({
id: argument.id,
Expand Down
6 changes: 3 additions & 3 deletions src/components/RadonOperator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
>
<div class="border">
<el-tooltip
v-show="showDelete && !hideDelete"
v-if="showDelete && !hideDelete"
:content="$t('delete_operator')"
placement="right"
effect="light"
>
<p class="delete" data-test="delete-operator" @click="deleteOperator">
<CustomIcon name="selete-btn" />
<CustomIcon name="close-btn" />
</p>
</el-tooltip>
<p data-test="operator-label" class="label">{{ $t('operator') }}</p>
Expand All @@ -22,7 +22,7 @@
type="operator"
:model-value="selectedOption"
:options="operatorOptions"
@input="
@update:model-value="
option => updateOperatorAndVariables(selectedOption.id, option.value)
"
/>
Expand Down
6 changes: 3 additions & 3 deletions src/components/SendTransaction/CompleteVariablesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,11 +77,11 @@ export default {
this.$emit('go-to-next-step')
},
updateKey(index, key) {
this.$set(this.keys, index, key)
this.keys[index] = key
if (this.isRepeated(key) && !this.isRepeatedIndex(key, index)) {
this.$set(this.errors, index, true)
this.erros[index] = true
} else {
this.$set(this.errors, index, false)
this.errors[index] = true
}
},
isRepeatedIndex(key, index) {
Expand Down
6 changes: 3 additions & 3 deletions src/components/Templates.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@
@change="readFile"
/>
<DeployDataRequest
v-if="dialogVisible"
v-if="dialogVisible && currentTemplate"
:template="currentTemplate"
:visible="dialogVisible"
@close="closeDeployModal"
Expand Down Expand Up @@ -123,9 +123,9 @@ const handleDeleteTemplate = ({ id }: { id: string }) => {
const handleCurrentChange = (val: number) => {
currentPage.value = val
}
const displayModalCreateDR = (currentTemplate: any) => {
const displayModalCreateDR = (templateToSet: any) => {
dialogVisible.value = true
currentTemplate.value = currentTemplate
currentTemplate.value = templateToSet
}
const fileInput = ref()
const readFile = () => {
Expand Down
8 changes: 4 additions & 4 deletions src/components/Variables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
data-test="select-type"
:model-value="{ primaryText: variable.type }"
:options="dataTypeOptions"
@input="
@update:model-value="
val =>
updateVariables({
index,
Expand Down Expand Up @@ -190,11 +190,11 @@ export default {
return this.dataTypeOptions.find(type => type.primaryText === type)
},
updateKey({ index, key, value, description, type }) {
this.$set(this.keys, index, key)
this.keys[index] = key
if (this.isRepeated(key) && !this.isRepeatedIndex(key, index)) {
this.$set(this.errors, index, true)
this.errors[index] = true
} else {
this.$set(this.errors, index, false)
this.errors[index] = false
this.updateVariables({
index,
key,
Expand Down

0 comments on commit da2b1b7

Please sign in to comment.