From 44a0d5ce1211995d75aa664713a0e5e6204dcceb Mon Sep 17 00:00:00 2001 From: Nazar Kanaev Date: Tue, 18 Aug 2020 20:32:27 +0100 Subject: [PATCH] hide menu dropdown after importing opml --- template/index.html | 6 +++++- template/static/javascripts/app.js | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/template/index.html b/template/index.html index 3d4aa83..a06fca4 100644 --- a/template/index.html +++ b/template/index.html @@ -18,7 +18,11 @@
Refreshing ({{loading.feeds}} left)
- + diff --git a/template/static/javascripts/app.js b/template/static/javascripts/app.js index 8dc58f3..18d554a 100644 --- a/template/static/javascripts/app.js +++ b/template/static/javascripts/app.js @@ -489,6 +489,7 @@ var vm = new Vue({ importOPML: function(event) { var input = event.target var form = document.querySelector('#opml-import-form') + this.$refs.menuDropdown.hide() api.upload_opml(form).then(function() { input.value = '' vm.refreshFeeds()