Removed old unused tag form properties from editor page.
This commit is contained in:
parent
9ce0ffd3a4
commit
c7994b8282
|
|
@ -146,15 +146,9 @@ const creditedAccountId: Ref<number | null> = ref(null)
|
||||||
const debitedAccountId: Ref<number | null> = ref(null)
|
const debitedAccountId: Ref<number | null> = ref(null)
|
||||||
const lineItems: Ref<TransactionLineItemResponse[]> = ref([])
|
const lineItems: Ref<TransactionLineItemResponse[]> = ref([])
|
||||||
const tags: Ref<string[]> = ref([])
|
const tags: Ref<string[]> = ref([])
|
||||||
const customTagInput = ref('')
|
|
||||||
const customTagInputValid = ref(false)
|
|
||||||
const attachmentsToUpload: Ref<File[]> = ref([])
|
const attachmentsToUpload: Ref<File[]> = ref([])
|
||||||
const removedAttachmentIds: Ref<number[]> = 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[]) => {
|
watch(availableCurrencies, (newValue: Currency[]) => {
|
||||||
if (newValue.length === 1) {
|
if (newValue.length === 1) {
|
||||||
currency.value = newValue[0]
|
currency.value = newValue[0]
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue