Skip to content

Commit

Permalink
fix(content-entries): hook delete icon to delete operation
Browse files Browse the repository at this point in the history
  • Loading branch information
amirch1 committed Jul 26, 2017
1 parent 0cd17be commit 418f7fc
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<div class="kBulkActions">
<button pButton icon="kIcontrash" class="kButtonDanger kBulkDeleteBtn"></button>
<button pButton icon="kIcontrash" class="kButtonDanger kBulkDeleteBtn" (click)="deleteEntries()"></button>
<button class="kButtonDefault kBulkActionsBtn" icon="kIcondropdown_arrow_bottom" iconPos="right" pButton label="{{'applications.content.entries.bulkActions' | translate}}" (click)="menu.toggle($event)"></button>
</div>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ export class BulkActionsComponent implements OnInit, OnDestroy {
}

// bulk delete
private deleteEntries(): void{
public deleteEntries(): void{
let msg = '';
// display entries marked for deletion in the confirmation box if there are up to 10 selected entries. Otherwise, just confirm deletion
if (this.selectedEntries.length > 10){
Expand Down

0 comments on commit 418f7fc

Please sign in to comment.