diff --git a/assets/controllers/elements/collection_type_controller.js b/assets/controllers/elements/collection_type_controller.js index 4f46cb0d..0b961cb0 100644 --- a/assets/controllers/elements/collection_type_controller.js +++ b/assets/controllers/elements/collection_type_controller.js @@ -61,7 +61,7 @@ export default class extends Controller { if(!prototype) { console.warn("Prototype is not set, we cannot create a new element. This is most likely due to missing permissions."); - bootbox.alert("You do not have the permsissions to create a new element. (No protoype element is set)"); + bootbox.alert("You do not have the permissions to create a new element. (No protoype element is set)"); return; } diff --git a/assets/controllers/pages/u2f_register_controller.js b/assets/controllers/pages/u2f_register_controller.js deleted file mode 100644 index ffa4c3f2..00000000 --- a/assets/controllers/pages/u2f_register_controller.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * This file is part of Part-DB (https://github.com/Part-DB/Part-DB-symfony). - * - * Copyright (C) 2019 - 2022 Jan Böhmer (https://github.com/jbtronics) - * - * 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 {Controller} from "@hotwired/stimulus"; - -export default class extends Controller -{ - connect() { - this.element.onclick = function() { - window.u2fauth.register(); - } - } -}