diff --git a/resources/assets/v2/src/api/v1/model/account/put.js b/resources/assets/v2/src/api/v1/model/account/put.js new file mode 100644 index 0000000000..d2ac8a8310 --- /dev/null +++ b/resources/assets/v2/src/api/v1/model/account/put.js @@ -0,0 +1,36 @@ +/* + * list.js + * Copyright (c) 2022 james@firefly-iii.org + * + * This file is part of Firefly III (https://github.com/firefly-iii). + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU Affero General Public License as + * published by the Free Software Foundation, either version 3 of the + * License, or (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU Affero General Public License for more details. + * + * You should have received a copy of the GNU Affero General Public License + * along with this program. If not, see . + */ + +import {api} from "../../../../boot/axios"; +import format from "date-fns/format"; + +export default class Put { + + /** + * + * @param identifier + * @param params + * @returns {Promise>} + */ + put(identifier, params) { + return api.put('/api/v2/accounts/' + identifier, params); + } + +} diff --git a/resources/assets/v2/src/support/page-settings/show-internals-button.js b/resources/assets/v2/src/support/page-settings/show-internals-button.js index a0d8e022a3..d9b466718d 100644 --- a/resources/assets/v2/src/support/page-settings/show-internals-button.js +++ b/resources/assets/v2/src/support/page-settings/show-internals-button.js @@ -20,6 +20,6 @@ export function showInternalsButton() { - console.log('showInternalsButton'); + // console.log('showInternalsButton'); document.querySelector('.toggle-page-internals').classList.remove('d-none'); } diff --git a/resources/views/v2/index.blade.php b/resources/views/v2/index.blade.php index fd5ae016d1..52f8ce6344 100644 --- a/resources/views/v2/index.blade.php +++ b/resources/views/v2/index.blade.php @@ -59,7 +59,7 @@