Commit c8e7c539 authored by akiraohgaki's avatar akiraohgaki

Add option to dialog open

parent 827e6154
......@@ -59,7 +59,10 @@ export default class CollectiondialogComponent extends BaseComponent {
}
}
open() {
open(view = '') {
if (view) {
this._handleCollectionsidebarSelect({detail: {select: view}});
}
this.contentRoot.querySelector('app-dialog').open();
}
......
......@@ -43,8 +43,8 @@ export default class OcsManagerHandler {
}
return {};
})
.add('ocsManager_collection', () => {
this._collectiondialogComponent.open();
.add('ocsManager_collection', (data) => {
this._collectiondialogComponent.open(data.view || '');
return false;
})
.add('ocsManager_openUrl', (data) => {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment