Delete and unsubscribe confirmation page

This commit is contained in:
Thomas Perl 2014-02-07 18:54:00 +01:00
parent 90564364a5
commit 8eebb09707
4 changed files with 108 additions and 3 deletions

View file

@ -75,7 +75,12 @@ Item {
color: (episodeItem.isPlaying || progress > 0) ? titleLabel.color : Constants.colors.destructive
icon: Icons.trash
visible: downloadState != Constants.state.deleted
onClicked: py.call('main.delete_episode', [id]);
onClicked: {
var ctx = { py: py, id: id };
pgst.showConfirmation('Delete episode', Icons.trash, function () {
ctx.py.call('main.delete_episode', [ctx.id]);
});
}
}
IconMenuItem {