2022-06-05 22:46:37 +02:00
|
|
|
import AbstractBulkAction from "../abstract_bulk_action.js";
|
2021-01-19 22:10:24 +01:00
|
|
|
|
|
|
|
|
const TPL = `
|
|
|
|
|
<tr>
|
|
|
|
|
<td colspan="2">
|
|
|
|
|
<span class="bx bx-trash"></span>
|
|
|
|
|
|
2021-04-18 21:29:10 +02:00
|
|
|
Delete matched notes
|
2021-01-19 22:10:24 +01:00
|
|
|
</td>
|
2021-01-26 14:10:34 +01:00
|
|
|
<td class="button-column">
|
2022-06-12 23:29:11 +02:00
|
|
|
<div class="dropdown help-dropdown">
|
|
|
|
|
<span class="bx bx-help-circle icon-action" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false"></span>
|
|
|
|
|
<div class="dropdown-menu dropdown-menu-right p-4">
|
|
|
|
|
<p>This will delete matched notes.</p>
|
|
|
|
|
|
|
|
|
|
<p>After the deletion, it's possible to undelete them from <span class="bx bx-history"></span> Recent Notes dialog.</p>
|
|
|
|
|
|
|
|
|
|
<p>To erase notes permanently, you can go after the deletion to the Option -> Other and click the "Erase deleted notes now" button.</p>
|
|
|
|
|
</div>
|
|
|
|
|
</div>
|
2022-06-17 23:12:52 +02:00
|
|
|
|
|
|
|
|
<span class="bx bx-x icon-action action-conf-del"></span>
|
2021-01-19 22:10:24 +01:00
|
|
|
</td>
|
|
|
|
|
</tr>`;
|
|
|
|
|
|
2022-06-05 22:32:23 +02:00
|
|
|
export default class DeleteNoteBulkAction extends AbstractBulkAction {
|
2021-01-19 22:10:24 +01:00
|
|
|
static get actionName() { return "deleteNote"; }
|
2022-06-03 17:29:08 +02:00
|
|
|
static get actionTitle() { return "Delete note"; }
|
2021-01-19 22:10:24 +01:00
|
|
|
|
|
|
|
|
doRender() {
|
|
|
|
|
return $(TPL);
|
|
|
|
|
}
|
|
|
|
|
}
|