fixed pikvm/pikvm#223: confirm stream window closing

This commit is contained in:
Devaev Maxim
2021-03-06 15:50:12 +03:00
parent ec0f985109
commit 8ee6a4a517
4 changed files with 24 additions and 9 deletions

View File

@@ -1,5 +1,5 @@
mixin window(id, title, with_header_id=false)
div(id=id class="window")
mixin window(id, title, with_header_id=false, close_confirm_msg="")
div(id=id class="window" data-close-confirm=close_confirm_msg)
div(id=(with_header_id ? `${id}-header` : "") class="window-header")
div(class="window-grab") #{title}
button(class="window-button-close") ×