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();