mirror of
https://github.com/shlinkio/shlink-web-client.git
synced 2026-04-23 06:56:22 +00:00
Migrate DeleteServerModal to tailwind components
This commit is contained in:
@@ -22,3 +22,12 @@ afterEach(() => {
|
||||
HTMLCanvasElement.prototype.getContext = (() => {}) as any;
|
||||
(global as any).scrollTo = () => {};
|
||||
(global as any).matchMedia = () => ({ matches: false });
|
||||
|
||||
HTMLDialogElement.prototype.showModal = function() {
|
||||
this.setAttribute('open', '');
|
||||
};
|
||||
HTMLDialogElement.prototype.close = function() {
|
||||
this.removeAttribute('open');
|
||||
this.dispatchEvent(new CloseEvent('close'));
|
||||
this.dispatchEvent(new CloseEvent('cancel'));
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user