Card Details Popup, every "Sub-Popup" must use .back() instead of .close()

- .close() closes the popup. Until now it was ok, but as the Card
  Details are opened in a popup too, .back() must be used to get the
  same behaviour back
- .back() is also .close() if there is no "popup layer" left
This commit is contained in:
Martin Filser 2021-10-21 10:12:55 +02:00
parent a6d3810e19
commit a59dfa8fc0
5 changed files with 51 additions and 77 deletions

View file

@ -187,7 +187,7 @@ window.ExportHtml = Popup => {
const boardSlug = getBoardSlug();
await addJsonExportToZip(zip, boardSlug);
Popup.close();
Popup.back();
closeSidebar();
cleanBoardHtml();