mirror of
https://github.com/firefly-iii/firefly-iii.git
synced 2025-10-14 16:13:54 +00:00
Small additions
This commit is contained in:
36
resources/assets/v2/src/api/v1/model/account/put.js
Normal file
36
resources/assets/v2/src/api/v1/model/account/put.js
Normal 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);
|
||||||
|
}
|
||||||
|
|
||||||
|
}
|
@@ -20,6 +20,6 @@
|
|||||||
|
|
||||||
|
|
||||||
export function showInternalsButton() {
|
export function showInternalsButton() {
|
||||||
console.log('showInternalsButton');
|
// console.log('showInternalsButton');
|
||||||
document.querySelector('.toggle-page-internals').classList.remove('d-none');
|
document.querySelector('.toggle-page-internals').classList.remove('d-none');
|
||||||
}
|
}
|
||||||
|
@@ -59,7 +59,7 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="modal-body">
|
<div class="modal-body">
|
||||||
<p>
|
<p>
|
||||||
Body
|
Buttons.
|
||||||
</p>
|
</p>
|
||||||
</div>
|
</div>
|
||||||
<div class="modal-footer">
|
<div class="modal-footer">
|
||||||
|
Reference in New Issue
Block a user