DeleteCollectionScene: Use proper class

This commit is contained in:
Max Berger
2026-03-04 21:34:29 +01:00
parent 326553915f
commit 066a133860

View File

@@ -25,13 +25,13 @@ import { LoadingScene } from "./LoadingScene.js";
import { delete_collection } from "./api.js"; import { delete_collection } from "./api.js";
/** /**
* @constructor
* @implements {Scene} * @implements {Scene}
* @param {string} user * @param {string} user
* @param {string} password * @param {string} password
* @param {Collection} collection * @param {Collection} collection
*/ */
export function DeleteCollectionScene(user, password, collection) { export class DeleteCollectionScene {
constructor(user, password, collection) {
/** @type {HTMLElement} */ let html_scene = document.getElementById("deletecollectionscene"); /** @type {HTMLElement} */ let html_scene = document.getElementById("deletecollectionscene");
/** @type {HTMLElement} */ let title_form = html_scene.querySelector("[data-name=title]"); /** @type {HTMLElement} */ let title_form = html_scene.querySelector("[data-name=title]");
/** @type {HTMLElement} */ let error_form = html_scene.querySelector("[data-name=error]"); /** @type {HTMLElement} */ let error_form = html_scene.querySelector("[data-name=error]");
@@ -119,3 +119,4 @@ export function DeleteCollectionScene(user, password, collection) {
} }
}; };
} }
}