edited comments
This commit is contained in:
parent
a9bebd789e
commit
e9c21409cd
1 changed files with 6 additions and 5 deletions
|
|
@ -68,15 +68,16 @@
|
||||||
window.location = "/editor";
|
window.location = "/editor";
|
||||||
}
|
}
|
||||||
|
|
||||||
async function closeModal(){
|
/**
|
||||||
|
* Closes the modal (popup for deletion)
|
||||||
|
*/
|
||||||
|
async function closeModal() {
|
||||||
closeModalBool = true;
|
closeModalBool = true;
|
||||||
await sleep(1);
|
await sleep(1);
|
||||||
closeModalBool = false;
|
closeModalBool = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
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>
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue