add prefix "_" to "named" IDs

This commit is contained in:
zadam
2022-12-21 16:11:00 +01:00
parent 1b24276a4a
commit 724f99f17c
49 changed files with 215 additions and 192 deletions

View File

@@ -83,7 +83,7 @@ export default class BulkActionsDialog extends BasicWidget {
this.$widget.on('click', '[data-action-add]', async event => {
const actionName = $(event.target).attr('data-action-add');
await bulkActionService.addAction('bulkAction', actionName);
await bulkActionService.addAction('_bulkAction', actionName);
await this.refresh();
});
@@ -111,7 +111,7 @@ export default class BulkActionsDialog extends BasicWidget {
this.$affectedNoteCount.text(affectedNoteCount);
const bulkActionNote = await froca.getNote('bulkAction');
const bulkActionNote = await froca.getNote('_bulkAction');
const actions = bulkActionService.parseActions(bulkActionNote);
@@ -150,7 +150,7 @@ export default class BulkActionsDialog extends BasicWidget {
if (loadResults.getAttributes().find(attr =>
attr.type === 'label'
&& attr.name === 'action'
&& attr.noteId === 'bulkAction'
&& attr.noteId === '_bulkAction'
&& attr.isDeleted)) {
// this may be triggered from e.g. sync without open widget, then no need to refresh the widget