mirror of
https://github.com/zadam/trilium.git
synced 2025-11-07 13:56:11 +01:00
converted delete notes dialog to new pattern
This commit is contained in:
@@ -21,7 +21,6 @@
|
||||
<%- include('dialogs/info.ejs') %>
|
||||
<%- include('dialogs/prompt.ejs') %>
|
||||
<%- include('dialogs/confirm.ejs') %>
|
||||
<%- include('dialogs/delete_notes.ejs') %>
|
||||
|
||||
<script type="text/javascript">
|
||||
global = globalThis; /* fixes https://github.com/webpack/webpack/issues/10035 */
|
||||
|
||||
@@ -1,55 +0,0 @@
|
||||
<div id="delete-notes-dialog" class="modal mx-auto" tabindex="-1" role="dialog">
|
||||
<div class="modal-dialog modal-dialog-scrollable modal-xl" role="document">
|
||||
<div class="modal-content">
|
||||
<div class="modal-header">
|
||||
<h4 class="modal-title mr-auto">Delete notes preview</h4>
|
||||
|
||||
<button type="button" class="close" data-dismiss="modal" aria-label="Close">
|
||||
<span aria-hidden="true">×</span>
|
||||
</button>
|
||||
</div>
|
||||
<div class="modal-body">
|
||||
<div class="checkbox">
|
||||
<label>
|
||||
<input id="delete-all-clones" value="1" type="checkbox">
|
||||
|
||||
delete also all clones
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div class="checkbox">
|
||||
<label title="Normal (soft) deletion only marks the notes as deleted and they can be undeleted (in recent changes dialog) within a period of time. Checking this option will erase the notes immediatelly and it won't be possible to undelete the notes.">
|
||||
<input id="erase-notes" value="1" type="checkbox">
|
||||
|
||||
erase notes permanently (can't be undone). This will force application reload.
|
||||
</label>
|
||||
</div>
|
||||
|
||||
<div id="delete-notes-list-wrapper">
|
||||
<h4>Following notes will be deleted (<span id="deleted-notes-count"></span>)</h4>
|
||||
|
||||
<ul id="delete-notes-list" style="max-height: 200px; overflow: auto;"></ul>
|
||||
</div>
|
||||
|
||||
<div id="no-note-to-delete-wrapper" class="alert alert-info">
|
||||
No note will be deleted (only clones).
|
||||
</div>
|
||||
|
||||
<div id="broken-relations-wrapper">
|
||||
<div class="alert alert-danger">
|
||||
<h4>Following relations will be broken and deleted (<span id="broke-relations-count"></span>)</h4>
|
||||
|
||||
<ul id="broken-relations-list" style="max-height: 200px; overflow: auto;"></ul>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="modal-footer">
|
||||
<button class="btn btn-sm" id="delete-notes-dialog-cancel-button">Cancel</button>
|
||||
|
||||
|
||||
|
||||
<button class="btn btn-primary btn-sm" id="delete-notes-dialog-ok-button">OK</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
Reference in New Issue
Block a user