mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-04 11:43:02 +00:00
Various layout fixes.
This commit is contained in:
6
.github/mergify.yml
vendored
6
.github/mergify.yml
vendored
@@ -5,3 +5,9 @@ pull_request_rules:
|
|||||||
actions:
|
actions:
|
||||||
merge:
|
merge:
|
||||||
method: merge
|
method: merge
|
||||||
|
- name: Close all on main
|
||||||
|
conditions:
|
||||||
|
- base=main
|
||||||
|
actions:
|
||||||
|
close:
|
||||||
|
message: Please do not open PR's on the `main` branch, but on the `develop` branch only. Thank you!
|
||||||
|
@@ -28,6 +28,7 @@
|
|||||||
|
|
||||||
<TransactionListLarge
|
<TransactionListLarge
|
||||||
:entries="rawTransactions"
|
:entries="rawTransactions"
|
||||||
|
:isEmpty="isEmpty"
|
||||||
:page="currentPage"
|
:page="currentPage"
|
||||||
ref="list"
|
ref="list"
|
||||||
:total="total"
|
:total="total"
|
||||||
@@ -80,7 +81,8 @@ export default {
|
|||||||
perPage: 51,
|
perPage: 51,
|
||||||
locale: 'en-US',
|
locale: 'en-US',
|
||||||
api: null,
|
api: null,
|
||||||
nameLoading: false
|
nameLoading: false,
|
||||||
|
isEmpty: false
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
created() {
|
created() {
|
||||||
@@ -137,6 +139,9 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
// console.log('Now getTransactions() DONE!');
|
// console.log('Now getTransactions() DONE!');
|
||||||
this.total = parseInt(response.data.meta.pagination.total);
|
this.total = parseInt(response.data.meta.pagination.total);
|
||||||
|
if (0 === this.total) {
|
||||||
|
this.isEmpty = true;
|
||||||
|
}
|
||||||
// let transactions = response.data.data;
|
// let transactions = response.data.data;
|
||||||
// console.log('Have downloaded ' + transactions.length + ' transactions');
|
// console.log('Have downloaded ' + transactions.length + ' transactions');
|
||||||
// console.log(response.data);
|
// console.log(response.data);
|
||||||
|
@@ -448,7 +448,7 @@ export default {
|
|||||||
this.updateField(payload);
|
this.updateField(payload);
|
||||||
if('description' === payload.field) {
|
if('description' === payload.field) {
|
||||||
// jump to account
|
// jump to account
|
||||||
this.$refs.splitForms[payload.index].$refs.sourceAccount.giveFocus();
|
//this.$refs.splitForms[payload.index].$refs.sourceAccount.giveFocus();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
storeDate: function (payload) {
|
storeDate: function (payload) {
|
||||||
|
@@ -239,7 +239,7 @@ export default {
|
|||||||
submittedAttachments: function () {
|
submittedAttachments: function () {
|
||||||
this.finaliseSubmission();
|
this.finaliseSubmission();
|
||||||
},
|
},
|
||||||
transactionType: function() {
|
transactionType: function () {
|
||||||
this.getExpectedSourceTypes();
|
this.getExpectedSourceTypes();
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
@@ -320,9 +320,11 @@ export default {
|
|||||||
result.source_account_name = array.source_name;
|
result.source_account_name = array.source_name;
|
||||||
result.source_account_type = array.source_type;
|
result.source_account_type = array.source_type;
|
||||||
|
|
||||||
result.destination_account_id = array.destination_id;
|
if (array.destination_type !== 'Cash account') {
|
||||||
result.destination_account_name = array.destination_name;
|
result.destination_account_id = array.destination_id;
|
||||||
result.destination_account_type = array.destination_type;
|
result.destination_account_name = array.destination_name;
|
||||||
|
result.destination_account_type = array.destination_type;
|
||||||
|
}
|
||||||
|
|
||||||
// amount:
|
// amount:
|
||||||
result.amount = array.amount;
|
result.amount = array.amount;
|
||||||
|
@@ -385,13 +385,13 @@ export default {
|
|||||||
|
|
||||||
this.$emit('remove-transaction', {index: this.index});
|
this.$emit('remove-transaction', {index: this.index});
|
||||||
},
|
},
|
||||||
triggerNextAccount: function(e) {
|
triggerNextAccount: function (e) {
|
||||||
//alert(e);
|
//alert(e);
|
||||||
if('source' === e) {
|
if ('source' === e) {
|
||||||
// console.log('Jump to destination!');
|
// console.log('Jump to destination!');
|
||||||
this.$refs.destinationAccount.giveFocus();
|
this.$refs.destinationAccount.giveFocus();
|
||||||
}
|
}
|
||||||
}
|
},
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
splitDate: function () {
|
splitDate: function () {
|
||||||
|
@@ -20,8 +20,6 @@
|
|||||||
|
|
||||||
<template>
|
<template>
|
||||||
<div>
|
<div>
|
||||||
<span>Length: {{ this.transactions.length }}</span>
|
|
||||||
|
|
||||||
<div v-if="transactions.length > 1" class="row">
|
<div v-if="transactions.length > 1" class="row">
|
||||||
<div class="col">
|
<div class="col">
|
||||||
<!-- tabs -->
|
<!-- tabs -->
|
||||||
|
@@ -118,9 +118,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
if (0 === this.index) {
|
|
||||||
this.$refs.inputThing.$refs.input.tabIndex = 2;
|
this.$refs.inputThing.$refs.input.tabIndex = 2;
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
@@ -128,7 +126,7 @@ export default {
|
|||||||
return './api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;
|
return './api/v1/autocomplete/accounts?types=' + types.join(',') + '&query=' + query;
|
||||||
},
|
},
|
||||||
giveFocus: function () {
|
giveFocus: function () {
|
||||||
//console.log('I want focus! now OK: ' + this.direction + ' l: ' + this.accounts.length);
|
// console.log('I want focus! now OK: ' + this.direction + ' l: ' + this.accounts.length);
|
||||||
//console.log(this.$refs.inputThing.$refs.input.value);
|
//console.log(this.$refs.inputThing.$refs.input.value);
|
||||||
this.$refs.inputThing.$refs.input.focus();
|
this.$refs.inputThing.$refs.input.focus();
|
||||||
//console.log(this.$refs.inputThing.isFocused);
|
//console.log(this.$refs.inputThing.isFocused);
|
||||||
|
@@ -71,9 +71,7 @@ export default {
|
|||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
this.$nextTick(function () {
|
this.$nextTick(function () {
|
||||||
if (0 === this.index) {
|
|
||||||
this.$refs.input.tabIndex = 3;
|
this.$refs.input.tabIndex = 3;
|
||||||
}
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
|
@@ -69,12 +69,10 @@ export default {
|
|||||||
this.timeStr = parts[1];
|
this.timeStr = parts[1];
|
||||||
},
|
},
|
||||||
mounted: function () {
|
mounted: function () {
|
||||||
if (0 === this.index) {
|
this.$nextTick(function () {
|
||||||
this.$nextTick(function () {
|
this.$refs.date.tabIndex = 6;
|
||||||
this.$refs.date.tabIndex = 6;
|
this.$refs.time.tabIndex = 7;
|
||||||
this.$refs.time.tabIndex = 7;
|
});
|
||||||
});
|
|
||||||
}
|
|
||||||
},
|
},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
|
@@ -67,10 +67,7 @@ export default {
|
|||||||
.then(response => {
|
.then(response => {
|
||||||
this.descriptions = response.data;
|
this.descriptions = response.data;
|
||||||
this.initialSet = response.data;
|
this.initialSet = response.data;
|
||||||
|
this.$refs.autoComplete.$refs.input.tabIndex = 1;
|
||||||
if(0===this.index) {
|
|
||||||
this.$refs.autoComplete.$refs.input.tabIndex = 1;
|
|
||||||
}
|
|
||||||
|
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
@@ -225,6 +225,9 @@ export default {
|
|||||||
entries: function (value) {
|
entries: function (value) {
|
||||||
// console.log('detected new transactions! (' + value.length + ')');
|
// console.log('detected new transactions! (' + value.length + ')');
|
||||||
this.parseTransactions();
|
this.parseTransactions();
|
||||||
|
if(this.isEmpty) {
|
||||||
|
this.loading=false;
|
||||||
|
}
|
||||||
},
|
},
|
||||||
// value: function (value) {
|
// value: function (value) {
|
||||||
// // console.log('Watch value!');
|
// // console.log('Watch value!');
|
||||||
@@ -406,6 +409,10 @@ export default {
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: true
|
default: true
|
||||||
},
|
},
|
||||||
|
isEmpty: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false
|
||||||
|
},
|
||||||
total: {
|
total: {
|
||||||
type: Number,
|
type: Number,
|
||||||
default: 1
|
default: 1
|
||||||
|
Reference in New Issue
Block a user