tadeussenf / pocket-wiki

Alternative User Interface for getpocket.com

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Confirm before delete

rosano opened this issue · comments

I was going to add a confirm before deleting but I'm not sure if this is the latest version of the code. It seems to connect the Archive button to pocket.deleteItem and vice versa, whereas in production these buttons seem to function as expected.

<div matLine>
<button mat-button (click)="pocket.deleteItem(item.item_id)">
<mat-icon>archive</mat-icon>
Archive
</button>
<button mat-button (click)="pocket.archiveItem(item.item_id)">
<mat-icon>delete</mat-icon>
Delete
</button>
</div>

@rosano thank you for the heads up, this was definitely mixed up (also in the productive version).

If you want to submit a pull request for your feature I will be happy to merge that.