mirror of
https://github.com/mickael-kerjean/filestash
synced 2025-12-15 21:04:46 +01:00
chore (rewrite): upload queue close button
This commit is contained in:
parent
ede2ba27f9
commit
26ab48a635
1 changed files with 9 additions and 2 deletions
|
|
@ -1,8 +1,10 @@
|
|||
import { createElement } from "../../lib/skeleton/index.js";
|
||||
import rxjs, { effect, onClick } from "../../lib/rx.js";
|
||||
import { loadCSS } from "../../helpers/loader.js";
|
||||
import { qs } from "../../lib/dom.js";
|
||||
|
||||
export default function(render) {
|
||||
render(createElement(`
|
||||
const $page = createElement(`
|
||||
<div class="component_upload_queue">
|
||||
<h2>CURRENT UPLOAD <div class="count_block">
|
||||
<span class="completed">24</span>
|
||||
|
|
@ -182,7 +184,12 @@ export default function(render) {
|
|||
</div>
|
||||
</div>
|
||||
</div>
|
||||
`))
|
||||
`);
|
||||
render($page);
|
||||
|
||||
effect(onClick(qs($page, "img[alt=\"close\"]")).pipe(
|
||||
rxjs.tap(() => $page.classList.add("hidden")),
|
||||
));
|
||||
}
|
||||
|
||||
export function init() {
|
||||
|
|
|
|||
Loading…
Reference in a new issue