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

@ -54,8 +54,13 @@ SlidePage {
icon: Icons.trash
color: Constants.colors.destructive
onClicked: {
py.call('main.unsubscribe', [episodesPage.podcast_id]);
episodesPage.closePage();
episodesPage.unPull();
var ctx = { py: py, id: episodesPage.podcast_id, page: episodesPage };
pgst.showConfirmation('Unsubscribe', Icons.trash, function () {
ctx.py.call('main.unsubscribe', [ctx.id]);
ctx.page.closePage();
});
}
}
}