mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-12 15:35:15 +00:00
Restore todo's
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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();
|
||||
}
|
||||
|
@@ -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';
|
||||
},
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user