Skip to content

Commit

Permalink
fix: update all input event naming
Browse files Browse the repository at this point in the history
  • Loading branch information
gabaldon committed Jan 29, 2024
1 parent 4f80114 commit 3137f73
Show file tree
Hide file tree
Showing 7 changed files with 18 additions and 19 deletions.
4 changes: 1 addition & 3 deletions auto-imports.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,4 @@
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {

}
declare global {}
9 changes: 5 additions & 4 deletions src/components/EditorOperatorArgument.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@
:maxlength="60"
class="input-operator"
:placeholder="argument.label"
:value="argumentValue"
@input="
:model-value="argumentValue"
@update:model-value="
value =>
updateTemplateAndVariables({
id: argument.id,
Expand Down Expand Up @@ -61,12 +61,12 @@
class="input-operator"
data-test="argument-input"
:placeholder="argument.selected.arguments[0].label"
:value="
:model-value="
argument.selected.arguments
? argument.selected.arguments[0].value.toString()
: ''
"
@input="
@update:model-value="
value =>
updateTemplateAndVariables({
id: argument.selected.arguments[0].id,
Expand Down Expand Up @@ -236,6 +236,7 @@ export default {
},
// FIXME(#19): fix update select argument in radon.js library
updateTemplateAndVariables(updater) {
console.log(updater)
this.$emit('update', updater)
},
},
Expand Down
4 changes: 2 additions & 2 deletions src/components/SendTransaction/CompleteVariablesForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@
data-test="variable-value-input"
class="variable-value"
:placeholder="variable.value"
:value="variable.value"
@input="
:model-value="variable.value"
@update:model-value="
val =>
updateVariables({
index,
Expand Down
12 changes: 6 additions & 6 deletions src/components/Variables.vue
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,9 @@
v-focus:[focusHandler(index,key)]
class="key-input"
data-test="edit-var-input"
:value="keys[index]"
:model-value="keys[index]"
:placeholder="keys[index]"
@input="
@update:model-value="
key =>
updateKey({
index,
Expand Down Expand Up @@ -54,8 +54,8 @@
class="variable-value"
data-test="edit-var-value-input"
:placeholder="$t('default_value_placeholder')"
:value="variable.value"
@input="
:model-value="variable.value"
@update:model-value="
val =>
updateVariables({
index,
Expand All @@ -75,8 +75,8 @@
class="variable-value"
data-test="edit-var-description-input"
:placeholder="$t('variables_description_placeholder')"
:value="variable.description"
@input="
:model-value="variable.description"
@update:model-value="
val =>
updateVariables({
index,
Expand Down
2 changes: 1 addition & 1 deletion src/components/steps/Loading.vue
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ export default {
sessionId(value) {
if (value) {
this.$router.push(`/wallet/transactions?session_id=${this.sessionId}`)
// this.setDefaultTemplates({ locale: this.locale })
this.setDefaultTemplates()
}
},
error(value) {
Expand Down
3 changes: 2 additions & 1 deletion src/store/rad.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ import {
getNativeValueFromMarkupArgumentType,
} from '@/utils'
import i18n from '@/plugins/i18n'
const { locale } = i18n.global
import { EDITOR_STAGES, HISTORY_UPDATE_TYPE, RAD_EXAMPLES } from '@/constants'
import {
UPDATE_HISTORY,
Expand Down Expand Up @@ -67,7 +68,7 @@ export default {
},
},
mutations: {
setDefaultTemplates: function (state, { locale }) {
setDefaultTemplates: function () {
RAD_EXAMPLES.forEach(example => {
const radRequest = {
retrieve: example.radRequest.data.data_request.retrieve,
Expand Down
3 changes: 1 addition & 2 deletions src/store/wallet.js
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ export default {
},
setWalletIndex(state, { walletIndex }) {
const walletInfos = state.walletInfos
if(walletInfos.length > 0) {
if (walletInfos.length > 0) {
state.walletIdx =
walletIndex === -1 ? walletInfos.length - 1 : walletIndex
} else {
Expand Down Expand Up @@ -929,7 +929,6 @@ export default {
},

unlockWallet: async function (context, { walletId, password }) {
debugger
context.commit('deleteSession')
const request = await api.unlockWallet({
wallet_id: walletId,
Expand Down

0 comments on commit 3137f73

Please sign in to comment.