mirror of
https://github.com/Pax1601/DCSOlympus.git
synced 2025-10-29 16:56:34 +00:00
Added new delete method dialog
This commit is contained in:
19
client/src/dialog/dialog.ts
Normal file
19
client/src/dialog/dialog.ts
Normal file
@@ -0,0 +1,19 @@
|
||||
import { Panel } from "../panels/panel";
|
||||
|
||||
export class Dialog extends Panel {
|
||||
|
||||
constructor( element:string ) {
|
||||
super( element );
|
||||
}
|
||||
|
||||
hide() {
|
||||
super.hide();
|
||||
document.getElementById( "gray-out" )?.classList.toggle("hide", true);
|
||||
}
|
||||
|
||||
show() {
|
||||
super.show();
|
||||
document.getElementById( "gray-out" )?.classList.toggle("hide", false);
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user