Skip to content

Firefly III: a personal finances manager

Fix lint errors

James Colea79e6f637c93
diff --git a/resources/assets/v3/js/boot/bootstrap.js b/resources/assets/v3/js/boot/bootstrap.js
index 310d568eec..849327427a 100644
--- a/resources/assets/v3/js/boot/bootstrap.js
+++ b/resources/assets/v3/js/boot/bootstrap.js
@@ -85,10 +85,10 @@ document.dispatchEvent(event);
window.bootstrapped = true;
// page may have an introduction necessary to be played.
-if (!window.showTour) {
- return;
+if (window.showTour) {
+ loadTour();
}
-loadTour();
+
diff --git a/resources/assets/v3/js/pages/shared/sortable-tables.js b/resources/assets/v3/js/pages/shared/sortable-tables.js
index 32d651c52d..ded4bfe14f 100644
--- a/resources/assets/v3/js/pages/shared/sortable-tables.js
+++ b/resources/assets/v3/js/pages/shared/sortable-tables.js
@@ -233,7 +233,7 @@ export class sortableTable {
}
}
function showSearchBox(th) {
- let column = th.dataset.filterColumn;
+ // let column = th.dataset.filterColumn;
// hide search buttons etc.
console.log('search button?',th.querySelector('.search-button'));
diff --git a/resources/assets/v3/js/pages/transactions/shared/create-link-autocomplete.js b/resources/assets/v3/js/pages/transactions/shared/create-link-autocomplete.js
index 38988bad33..00eb88f750 100644
--- a/resources/assets/v3/js/pages/transactions/shared/create-link-autocomplete.js
+++ b/resources/assets/v3/js/pages/transactions/shared/create-link-autocomplete.js
@@ -21,6 +21,7 @@
import Autocomplete from "bootstrap5-autocomplete";
import formatMoney from "../../../util/format-money.js";
import { format } from "date-fns";
+import i18next from "i18next";
export function createLinkAutocomplete(fieldIdentifier, url) {
const renderJournal = function (item) {
diff --git a/resources/assets/v3/js/pages/transactions/shared/parse-errors.js b/resources/assets/v3/js/pages/transactions/shared/parse-errors.js
index 4c098fae1a..29b0afb590 100644
--- a/resources/assets/v3/js/pages/transactions/shared/parse-errors.js
+++ b/resources/assets/v3/js/pages/transactions/shared/parse-errors.js
@@ -17,7 +17,7 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <https://www.gnu.org/licenses/>.
*/
-
+import i18next from "i18next";
import { spliceErrorsIntoTransactions } from "./splice-errors-into-transactions.js";
export function parseErrors(data) {
diff --git a/resources/assets/v3/js/pages/transactions/shared/process-upload-error.js b/resources/assets/v3/js/pages/transactions/shared/process-upload-error.js
index aed6ae376e..3930b7d93c 100644
--- a/resources/assets/v3/js/pages/transactions/shared/process-upload-error.js
+++ b/resources/assets/v3/js/pages/transactions/shared/process-upload-error.js
@@ -19,6 +19,7 @@
*/
import Delete from "../../../api/model/transaction/delete.js";
+import i18next from "i18next";
export function processUploadError(event) {
this.notifications.success.show = false;