mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2024-11-23 01:16:46 -06:00
Fix #2945
This commit is contained in:
parent
5b9e0319c7
commit
ce44edcf63
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
@ -29,9 +29,7 @@
|
||||
<div class="col-sm-12">
|
||||
<select name="budget[]" ref="budget" v-model="value" @input="handleInput" class="form-control"
|
||||
v-if="this.budgets.length > 0">
|
||||
<option v-for="cBudget in this.budgets" :label="cBudget.name" :value="cBudget.id"
|
||||
|
||||
>{{cBudget.name}}</option>
|
||||
<option v-for="cBudget in this.budgets" :label="cBudget.name" :value="cBudget.id">{{cBudget.name}}</option>
|
||||
</select>
|
||||
<ul class="list-unstyled" v-for="error in this.error">
|
||||
<li class="text-danger">{{ error }}</li>
|
||||
@ -46,8 +44,7 @@
|
||||
props: ['transactionType', 'value', 'error','no_budget'],
|
||||
mounted() {
|
||||
this.loadBudgets();
|
||||
// console.log('budget value');
|
||||
// console.log(this.value);
|
||||
//this.value = null === this.value ? 0 : this.value;
|
||||
},
|
||||
data() {
|
||||
return {
|
||||
@ -68,6 +65,10 @@
|
||||
{
|
||||
name: this.no_budget,
|
||||
id: 0,
|
||||
},
|
||||
{
|
||||
name: this.no_budget,
|
||||
id: null,
|
||||
}
|
||||
];
|
||||
for (const key in res.data) {
|
||||
|
@ -170,6 +170,7 @@
|
||||
:error="transaction.errors.category"
|
||||
></category>
|
||||
<tags
|
||||
:transactionType="transactionType"
|
||||
:tags="transaction.tags"
|
||||
v-model="transaction.tags"
|
||||
:error="transaction.errors.tags"
|
||||
@ -203,7 +204,7 @@
|
||||
{{ $t('firefly.after_update_create_another') }}
|
||||
</label>
|
||||
</div>
|
||||
<div class="checkbox" v-if="transactionType.toLowerCase() !== 'reconciliation'">
|
||||
<div class="checkbox" v-if="null !== transactionType && transactionType.toLowerCase() !== 'reconciliation'">
|
||||
<label>
|
||||
<input v-model="storeAsNew" name="store_as_new" type="checkbox">
|
||||
{{ $t('firefly.store_as_new') }}
|
||||
@ -301,7 +302,9 @@
|
||||
}
|
||||
},
|
||||
setTransactionType(type) {
|
||||
this.transactionType = type;
|
||||
if(null !== type) {
|
||||
this.transactionType = type;
|
||||
}
|
||||
},
|
||||
deleteTransaction(index, event) {
|
||||
event.preventDefault();
|
||||
|
1
webpack.mix.js
vendored
1
webpack.mix.js
vendored
@ -31,4 +31,5 @@ let mix = require('laravel-mix');
|
||||
|
|
||||
*/
|
||||
|
||||
//mix.sourceMaps().js('resources/assets/js/app.js', 'public/v1/js');
|
||||
mix.js('resources/assets/js/app.js', 'public/v1/js');
|
||||
|
Loading…
Reference in New Issue
Block a user