mirror of
https://github.com/zadam/trilium.git
synced 2025-11-13 16:55:50 +01:00
add prefix "_" to "named" IDs
This commit is contained in:
@@ -18,7 +18,7 @@ const TPL = `
|
||||
|
||||
export default class SharedInfoWidget extends NoteContextAwareWidget {
|
||||
isEnabled() {
|
||||
return super.isEnabled() && this.noteId !== 'share' && this.note.hasAncestor('share');
|
||||
return super.isEnabled() && this.noteId !== '_share' && this.note.hasAncestor('_share');
|
||||
}
|
||||
|
||||
doRender() {
|
||||
@@ -55,7 +55,7 @@ export default class SharedInfoWidget extends NoteContextAwareWidget {
|
||||
}
|
||||
|
||||
entitiesReloadedEvent({loadResults}) {
|
||||
if (loadResults.getAttributes().find(attr => attr.name.startsWith("share") && attributeService.isAffecting(attr, this.note))) {
|
||||
if (loadResults.getAttributes().find(attr => attr.name.startsWith('_share') && attributeService.isAffecting(attr, this.note))) {
|
||||
this.refresh();
|
||||
}
|
||||
else if (loadResults.getBranches().find(branch => branch.noteId === this.noteId)) {
|
||||
|
||||
Reference in New Issue
Block a user