import opml

This commit is contained in:
Nazar Kanaev
2020-07-12 16:38:27 +01:00
parent 9583b4b8d7
commit ea4775839f
4 changed files with 67 additions and 9 deletions

View File

@@ -241,10 +241,12 @@ var vm = new Vue({
api.items.update(item.id, {status: item.status})
},
importOPML: function(event) {
var vm = this
var input = event.target
var form = document.querySelector('#opml-import-form')
api.upload_opml(form).then(function() {
input.value = ''
vm.refreshFeeds()
})
},
}