DeleteCollectionScene: Use proper class
This commit is contained in:
@@ -25,13 +25,13 @@ import { LoadingScene } from "./LoadingScene.js";
|
||||
import { delete_collection } from "./api.js";
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @implements {Scene}
|
||||
* @param {string} user
|
||||
* @param {string} password
|
||||
* @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 title_form = html_scene.querySelector("[data-name=title]");
|
||||
/** @type {HTMLElement} */ let error_form = html_scene.querySelector("[data-name=error]");
|
||||
@@ -119,3 +119,4 @@ export function DeleteCollectionScene(user, password, collection) {
|
||||
}
|
||||
};
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user