Small additions

This commit is contained in:
James Cole
2025-03-29 07:58:45 +01:00
parent 7b0e7e8612
commit 6dcc78b9e5
3 changed files with 38 additions and 2 deletions

View File

@@ -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 <https://www.gnu.org/licenses/>.
*/
import {api} from "../../../../boot/axios";
import format from "date-fns/format";
export default class Put {
/**
*
* @param identifier
* @param params
* @returns {Promise<AxiosResponse<any>>}
*/
put(identifier, params) {
return api.put('/api/v2/accounts/' + identifier, params);
}
}

View File

@@ -20,6 +20,6 @@
export function showInternalsButton() {
console.log('showInternalsButton');
// console.log('showInternalsButton');
document.querySelector('.toggle-page-internals').classList.remove('d-none');
}

View File

@@ -59,7 +59,7 @@
</div>
<div class="modal-body">
<p>
Body
Buttons.
</p>
</div>
<div class="modal-footer">