commit | 99ac9d9f4a78d112ec63d893148d757fa669294c | [log] [tgz] |
---|---|---|
author | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Jan 03 13:58:19 2017 -0800 |
committer | Matteo Scandolo <matteo.scandolo@gmail.com> | Tue Jan 03 13:58:19 2017 -0800 |
tree | f7d97647d6be8dace3d52e76ebccb971dd998767 | |
parent | 3f9a579b2de30ee42320ff04921b4188df51d226 [diff] [blame] |
Added delete button to list view Change-Id: I7ebbc131e59365363c649a8f1eadebb46767ccda
diff --git a/src/index.ts b/src/index.ts index 4ba1f3d..b03f4b4 100644 --- a/src/index.ts +++ b/src/index.ts
@@ -100,7 +100,13 @@ color: 'red', cb: (item) => { console.log(item); - item.$delete(); + item.$delete() + .then(res => { + console.log(res); + }) + .catch(err => { + console.error(err); + }); } } ]