edited comments

This commit is contained in:
dhain 2022-10-18 08:05:58 +02:00
parent a9bebd789e
commit e9c21409cd

View file

@ -68,6 +68,9 @@
window.location = "/editor"; window.location = "/editor";
} }
/**
* Closes the modal (popup for deletion)
*/
async function closeModal() { async function closeModal() {
closeModalBool = true; closeModalBool = true;
await sleep(1); await sleep(1);
@ -75,8 +78,6 @@
} }
let closeModalBool = false; let closeModalBool = false;
</script> </script>
@ -103,7 +104,7 @@
<div class="row"> <div class="row">
<div class="offset-md-4 col-md-4"> <div class="offset-md-4 col-md-4">
{#if notes?.length > 0} {#if notes?.length > 0}
<!-- Notes listing --> <!-- Notes compact listing -->
<ul> <ul>
{#each notes as note} {#each notes as note}
<li on:mouseover={() => handleMouseOverLi(note.id)} <li on:mouseover={() => handleMouseOverLi(note.id)}
@ -120,7 +121,7 @@
<div class="col-1"> <div class="col-1">
<!-- Delete Note Popup --> <!-- Delete Note Popup -->
<Modal basic small={true} button={false} close={closeModalBool}> <!-- TODO: how to close properly?! no idea --> <Modal basic small={true} button={false} close={closeModalBool}>
<Content> <Content>
<div class="row" style="margin-bottom: 10px;"> <div class="row" style="margin-bottom: 10px;">
<h5>Do you really want to delete the "{note.title}" note?</h5> <h5>Do you really want to delete the "{note.title}" note?</h5>