Add UI activation callback which will open database when opened from sidebar
This commit is contained in:
parent
9f104e8744
commit
8f7ff1de73
@ -460,6 +460,10 @@ export class DatabaseComponent extends EditorNodeContract implements OnInit {
|
|||||||
await modal.present();
|
await modal.present();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
performUIActivation() {
|
||||||
|
return this.openDatabase();
|
||||||
|
}
|
||||||
|
|
||||||
dismiss() {
|
dismiss() {
|
||||||
this.modals.dismiss();
|
this.modals.dismiss();
|
||||||
}
|
}
|
||||||
|
@ -42,4 +42,6 @@ export abstract class EditorNodeContract {
|
|||||||
public performLoad(): void | Promise<void> {}
|
public performLoad(): void | Promise<void> {}
|
||||||
|
|
||||||
public performDelete(): void | Promise<void> {}
|
public performDelete(): void | Promise<void> {}
|
||||||
|
|
||||||
|
public performUIActivation(): void | Promise<void> {}
|
||||||
}
|
}
|
||||||
|
@ -85,6 +85,7 @@ export class EditorPage implements OnInit {
|
|||||||
nodes.forEach((node, i) => {
|
nodes.forEach((node, i) => {
|
||||||
if ( node.nodeId === this.scrollToNodeId ) {
|
if ( node.nodeId === this.scrollToNodeId ) {
|
||||||
elements[i].nativeElement.scrollIntoView();
|
elements[i].nativeElement.scrollIntoView();
|
||||||
|
node.performUIActivation();
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user