Various JS changes.

This commit is contained in:
James Cole
2020-02-09 09:32:33 +01:00
parent c8d2053500
commit ccb1f56573
6 changed files with 11 additions and 9 deletions

2
public/v1/js/app.js vendored

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@@ -168,7 +168,7 @@
</div>
</div>
<div class="box-footer" v-if="transactions.length-1 === index">
<button class="split_add_btn btn btn-primary" type="button" @click="addTransactionToArray">{{ $t('firefly.add_another_split') }}</button>
<button class="split_add_btn btn btn-default" type="button" @click="addTransactionToArray">{{ $t('firefly.add_another_split') }}</button>
</div>
</div>
</div>

View File

@@ -19,11 +19,13 @@
-->
<template>
<!--
Show if:
- more than one currency enabled in system.
-->
<div class="form-group" v-bind:class="{ 'has-error': hasError()}" v-if="
null == this.transactionType ||
null != this.transactionType && (this.enabledCurrencies.length > 2 && (this.transactionType.toLowerCase() === 'deposit' || this.transactionType.toLowerCase() === 'withdrawal')) ||
this.liability ||
(null != this.transactionType && this.transactionType.toLowerCase() === 'transfer')">
this.enabledCurrencies.length > 1">
<div class="col-sm-8 col-sm-offset-4 text-sm">
{{ $t('form.foreign_amount') }}
</div>