1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-08-07 23:03:00 +03:00

Linked up confirmation prompt to editor switching

This commit is contained in:
Dan Brown
2022-04-20 18:21:21 +01:00
parent eff539f89b
commit 478067483f
7 changed files with 66 additions and 7 deletions

View File

@@ -17,6 +17,22 @@
</div>
</div>
@component('common.confirm-dialog', ['title' => 'Destroy Dogs'])
<p>Are you sure you want to do this thingy?</p>
<ul>
<li>This could be bad</li>
<li>This could be very bad</li>
<li>This might be very bad</li>
</ul>
@endcomponent
<script nonce="{{ $cspNonce }}">
setTimeout(async () => {
const result = await window.components["confirm-dialog"][0].show();
console.log({result});
}, 1000);
</script>
<div class="container" id="home-default">
<div class="grid third gap-xxl no-row-gap" >
<div>