frontend-zackeneule/source/pages/logout/logic.ts

24 lines
954 B
TypeScript
Raw Permalink Normal View History

2024-05-20 22:04:23 +02:00
/*
Espe | Ein schlichtes Werkzeug zur Mitglieder-Verwaltung | Frontend
Copyright (C) 2024 Christian Fraß
This program is free software: you can redistribute it and/or modify it under the terms of the GNU 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 General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see
<https://www.gnu.org/licenses/>.
*/
2024-04-22 10:02:43 +02:00
lib_plankton.zoo_page.register(
"logout",
async (parameters, target_element) => {
2024-04-22 10:24:38 +02:00
await _espe.backend.logout();
2024-04-22 10:02:43 +02:00
lib_plankton.zoo_page.set({"name": "index", "parameters": {}});
2024-04-26 11:03:10 +02:00
update_nav({"mode": "logged_out"});
2024-04-22 10:02:43 +02:00
}
);