mirror of
https://github.com/nkanaev/yarr.git
synced 2025-05-24 21:19:19 +00:00
clear items when mark as read
This commit is contained in:
parent
03668131b4
commit
bc627f5d2c
@ -102,11 +102,7 @@ var vm = new Vue({
|
|||||||
var vm = this
|
var vm = this
|
||||||
var query = this.getItemsQuery()
|
var query = this.getItemsQuery()
|
||||||
api.items.mark_read(query).then(function() {
|
api.items.mark_read(query).then(function() {
|
||||||
vm.items.forEach(function(item) {
|
vm.items = []
|
||||||
if (item.status != 'starred') {
|
|
||||||
item.status = 'read'
|
|
||||||
}
|
|
||||||
})
|
|
||||||
})
|
})
|
||||||
},
|
},
|
||||||
toggleFolderExpanded: function(folder) {
|
toggleFolderExpanded: function(folder) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user