mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-03 03:00:14 +00:00
Budget box is back.
This commit is contained in:
2
public/v1/js/app.js
vendored
2
public/v1/js/app.js
vendored
File diff suppressed because one or more lines are too long
@@ -22,7 +22,7 @@
|
|||||||
<template>
|
<template>
|
||||||
<div class="form-group"
|
<div class="form-group"
|
||||||
v-bind:class="{ 'has-error': hasError()}"
|
v-bind:class="{ 'has-error': hasError()}"
|
||||||
v-if="typeof this.transactionType === 'undefined' || this.transactionType === 'Withdrawal' || this.transactionType === '' || null === this.transactionType">
|
v-if="typeof this.transactionType === 'undefined' || this.transactionType === 'withdrawal' || this.transactionType === 'Withdrawal' || this.transactionType === '' || null === this.transactionType">
|
||||||
<div class="col-sm-12">
|
<div class="col-sm-12">
|
||||||
<select name="budget[]" ref="budget" @input="handleInput" class="form-control"
|
<select name="budget[]" ref="budget" @input="handleInput" class="form-control"
|
||||||
v-if="this.budgets.length > 0">
|
v-if="this.budgets.length > 0">
|
||||||
|
@@ -29,7 +29,7 @@
|
|||||||
<input type="date" class="form-control" :name="name"
|
<input type="date" class="form-control" :name="name"
|
||||||
:title="title" autocomplete="off"
|
:title="title" autocomplete="off"
|
||||||
ref="date"
|
ref="date"
|
||||||
:value="value.substr(0,10)" @input="handleInput"
|
:value="value ? value.substr(0,10): ''" @input="handleInput"
|
||||||
:placeholder="title">
|
:placeholder="title">
|
||||||
<ul class="list-unstyled" v-for="error in this.error">
|
<ul class="list-unstyled" v-for="error in this.error">
|
||||||
<li class="text-danger">{{ error }}</li>
|
<li class="text-danger">{{ error }}</li>
|
||||||
|
@@ -19,7 +19,7 @@
|
|||||||
-->
|
-->
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div class="form-group" v-bind:class="{ 'has-error': hasError()}">
|
<div class="form-group" v-bind:class="{ 'has-error': hasError()}" v-if="this.enabledCurrencies.length > 1">
|
||||||
<div class="col-sm-4">
|
<div class="col-sm-4">
|
||||||
<select class="form-control" ref="currency_select" name="foreign_currency[]"
|
<select class="form-control" ref="currency_select" name="foreign_currency[]"
|
||||||
v-if="this.enabledCurrencies.length > 0" @input="handleInput">
|
v-if="this.enabledCurrencies.length > 0" @input="handleInput">
|
||||||
@@ -136,8 +136,10 @@
|
|||||||
];
|
];
|
||||||
for (const key in res.data) {
|
for (const key in res.data) {
|
||||||
if (res.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
|
if (res.data.hasOwnProperty(key) && /^0$|^[1-9]\d*$/.test(key) && key <= 4294967294) {
|
||||||
this.currencies.push(res.data[key]);
|
if (res.data[key].enabled) {
|
||||||
this.enabledCurrencies.push(res.data[key]);
|
this.currencies.push(res.data[key]);
|
||||||
|
this.enabledCurrencies.push(res.data[key]);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Reference in New Issue
Block a user