diff --git a/src/app/components/toolbar/toolbar.component.html b/src/app/components/toolbar/toolbar.component.html
index ef6095a..cbab1c4 100644
--- a/src/app/components/toolbar/toolbar.component.html
+++ b/src/app/components/toolbar/toolbar.component.html
@@ -49,3 +49,20 @@
+
+
diff --git a/src/app/components/toolbar/toolbar.component.ts b/src/app/components/toolbar/toolbar.component.ts
index 5cc311d..c72a50d 100644
--- a/src/app/components/toolbar/toolbar.component.ts
+++ b/src/app/components/toolbar/toolbar.component.ts
@@ -13,6 +13,8 @@ export class ToolbarComponent implements OnInit {
query: string;
showSidebar:boolean;
deleteConfirm: string = '';
+ editDialog: string = '';
+ collectionName: string = '';
constructor(public store: LocalStore, private api: ApiService, private picStore: PicStore) {
store.showSidebar.subscribe(show=>this.showSidebar = show);
}
@@ -47,4 +49,13 @@ export class ToolbarComponent implements OnInit {
this.deleteConfirm = 'is-active'
}
}
+ editCollection(confirmed?:boolean){
+ if(confirmed){
+ this.store.editCollection(this.picStore.selectedCollection, this.collectionName);
+ this.editDialog = '';
+ }else{
+ this.collectionName = this.picStore.selectedCollection;
+ this.editDialog = 'is-active';
+ }
+ }
}