Restore todo's

This commit is contained in:
James Cole
2022-10-30 11:43:17 +01:00
parent e3181e90df
commit d28326cc89
64 changed files with 102 additions and 104 deletions

View File

@@ -199,19 +199,19 @@ export default {
if (this.transactionType.toString() !== '' && this.index > 0) {
if (this.transactionType.toString().toLowerCase() === 'transfer') {
this.inputDisabled = true;
// See reference nr. 2
// TODO needs to copy value from very first input.
return;
}
if (this.transactionType.toString().toLowerCase() === 'withdrawal' && this.inputName.substr(0, 6).toLowerCase() === 'source') {
// See reference nr. 3
// TODO also clear value?
this.inputDisabled = true;
return;
}
if (this.transactionType.toString().toLowerCase() === 'deposit' && this.inputName.substr(0, 11).toLowerCase() === 'destination') {
// See reference nr. 4
// TODO also clear valye?
this.inputDisabled = true;
}
}
@@ -241,7 +241,7 @@ export default {
this.$emit('clear:value')
},
handleEnter: function (e) {
// See reference nr. 5
// TODO feels sloppy. Can be removed.
if (e.keyCode === 13) {
//e.preventDefault();
}

View File

@@ -167,7 +167,7 @@ export default {
this.$emit('input', this.name.name);
},
handleEnter: function (e) {
// See reference nr. 1
// TODO feels sloppy
if (e.keyCode === 13) {
//e.preventDefault();
}

View File

@@ -96,7 +96,7 @@ export default {
};
},
computed: {
// See reference nr. 6
// TODO this seems to be a pretty weird way of doing it.
dateComponent() {
return 'custom-date';
},

View File

@@ -139,7 +139,7 @@ export default {
this.$emit('input', this.$refs.descr.value);
},
handleEnter: function (e) {
// See reference nr. 7
// TODO feels sloppy
if (e.keyCode === 13) {
//e.preventDefault();

View File

@@ -127,7 +127,7 @@
{% if journal.reconciled %}
<span class="fa fa-check" aria-hidden="true"></span>
{% else %}
<!-- See reference nr. 1 -->
<!--TODO include icon -->
{% endif %}
{% endif %}

View File

@@ -16,7 +16,8 @@
<td data-value="{{ transaction.description }}">{{ transaction.description }}</td>
<td data-value="{{ transaction.date.format('Y-m-d') }}">
{{ transaction.date.isoFormat(monthAndDayFormat) }}
</td><!-- See reference nr. 3 -->
</td>
<!-- TODO i dont think transactionAmount will work. -->
<td style="text-align: right;" data-value="{{ transaction.amount}}"><span
style="margin-right:5px;">

View File

@@ -3,7 +3,7 @@
<a href="#" class="btn btn-danger btn-sm remove-action"><span class="fa fa-trash"></span></a>
</td>
<td style="width:30%;">
{# See reference nr. 2 #}
{# TODO error when invalid name #}
<select name="actions[{{ count }}][type]" class="form-control">
{% for key,type in allRuleActions() %}
<option value="{{ key }}" label="{{ type }}" {% if key == oldAction %} selected{% endif %}>{{ type }}</option>