WIP: Add Drafts, Templates, and Recurring Transactions #45
|
|
@ -146,15 +146,9 @@ const creditedAccountId: Ref<number | null> = ref(null)
|
|||
const debitedAccountId: Ref<number | null> = ref(null)
|
||||
const lineItems: Ref<TransactionLineItemResponse[]> = ref([])
|
||||
const tags: Ref<string[]> = ref([])
|
||||
const customTagInput = ref('')
|
||||
const customTagInputValid = ref(false)
|
||||
const attachmentsToUpload: Ref<File[]> = ref([])
|
||||
const removedAttachmentIds: Ref<number[]> = ref([])
|
||||
|
||||
watch(customTagInput, (newValue: string) => {
|
||||
const result = newValue.match('^[a-z0-9-_]{3,32}$')
|
||||
customTagInputValid.value = result !== null && result.length > 0
|
||||
})
|
||||
watch(availableCurrencies, (newValue: Currency[]) => {
|
||||
if (newValue.length === 1) {
|
||||
currency.value = newValue[0]
|
||||
|
|
|
|||
Loading…
Reference in New Issue