Skip to content

Commit

Permalink
remove keepalive from transfer forms
Browse files Browse the repository at this point in the history
  • Loading branch information
zlayine committed Oct 22, 2024
1 parent 70ad780 commit 78a2c9a
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 29 deletions.
20 changes: 0 additions & 20 deletions resources/js/components/batch/forms/BatchTransferForm.vue
Original file line number Diff line number Diff line change
Expand Up @@ -34,13 +34,6 @@
type="number"
required
/>
<FormCheckbox
v-if="useAppStore().advanced"
v-model="simpleKeepAlive"
name="simpleKeepAlive"
label="Keep Alive"
description="If true, the transaction will fail if the balance drops below the minimum requirement. Defaults to False."
/>
</div>
</div>
<div class="rounded-b-lg p-6 pt-0" v-else>
Expand Down Expand Up @@ -91,13 +84,6 @@
type="number"
required
/>
<FormCheckbox
v-if="useAppStore().advanced"
v-model="operatorKeepAlive"
name="operatorKeepAlive"
label="Keep Alive"
description="If true, the transaction will fail if the balance drops below the minimum requirement. Defaults to False."
/>
</div>
</div>
</FadeTransition>
Expand Down Expand Up @@ -165,8 +151,6 @@ const operatorTokenId = ref(
);
const simpleAmount = ref(props.modelValue.simpleParams?.amount ?? 1);
const operatorAmount = ref(props.modelValue.operatorParams?.amount ?? 1);
const simpleKeepAlive = ref(props.modelValue.simpleParams?.keepAlive ?? false);
const operatorKeepAlive = ref(props.modelValue.operatorParams?.keepAlive ?? false);
const operatorSource = ref(props.modelValue.operatorParams?.source!);
const validForm = computed(() => formRef.value.getMeta().valid);
Expand All @@ -178,15 +162,13 @@ const operatorValidation = yup.object({
operatorTokenId: stringRequiredSchema.typeError('Token ID is required'),
operatorAmount: numberRequiredSchema.typeError('Amount must be a number'),
operatorSource: stringRequiredSchema,
operatorKeepAlive: booleanNotRequiredSchema,
});
const simpleValidation = yup.object({
account: addressRequiredSchema,
transferType: stringNotRequiredSchema,
simpleTokenId: stringRequiredSchema.typeError('Token ID is required'),
simpleAmount: numberRequiredSchema.typeError('Amount must be a number'),
simpleKeepAlive: booleanRequiredSchema,
});
const hasChanged = computed(() =>
Expand All @@ -198,7 +180,6 @@ const hasChanged = computed(() =>
? {
tokenId: formatToken(simpleTokenId.value),
amount: simpleAmount.value,
keepAlive: simpleKeepAlive.value,
}
: null,
operatorParams:
Expand All @@ -207,7 +188,6 @@ const hasChanged = computed(() =>
tokenId: formatToken(operatorTokenId.value),
source: addressToPublicKey(operatorSource.value),
amount: operatorAmount.value,
keepAlive: operatorKeepAlive.value,
}
: null,
})
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,12 +60,6 @@
type="number"
required
/>
<FormCheckbox
v-model="keepAlive"
name="keepAlive"
label="Keep Alive"
description="If true, the transaction will fail if the balance drops below the minimum requirement. Defaults to False."
/>
<FormInput
v-model="signingAccount"
name="signingAccount"
Expand Down Expand Up @@ -146,7 +140,6 @@ const collectionId = ref(props.item?.collectionId);
const recipient = ref('');
const source = ref('');
const amount = ref();
const keepAlive = ref(false);
const signingAccount = ref('');
const idempotencyKey = ref('');
const skipValidation = ref(false);
Expand All @@ -164,7 +157,6 @@ const validation = yup.object({
recipient: addressRequiredSchema,
amount: numberRequiredSchema.min(1),
source: stringNotRequiredSchema,
keepAlive: booleanNotRequiredSchema,
signingAccount: stringNotRequiredSchema,
idempotencyKey: stringNotRequiredSchema,
skipValidation: booleanNotRequiredSchema,
Expand Down Expand Up @@ -193,7 +185,6 @@ const transferToken = async () => {
tokenId: formatToken(tokenId.value),
source: source.value,
amount: amount.value,
keepAlive: keepAlive.value,
},
signingAccount: signingAccount.value,
idempotencyKey: idempotencyKey.value,
Expand Down

0 comments on commit 78a2c9a

Please sign in to comment.