mirror of
https://github.com/nkanaev/yarr.git
synced 2025-09-15 02:40:15 +00:00
ui tweaks
This commit is contained in:
@@ -6,6 +6,7 @@ var FILTERS = [
|
||||
{'title': 'Starred', 'value': 'starred', 'icon': 'star'},
|
||||
]
|
||||
|
||||
Vue.use(window['v-click-outside'])
|
||||
|
||||
var vm = new Vue({
|
||||
el: '#app',
|
||||
@@ -103,6 +104,22 @@ var vm = new Vue({
|
||||
is_expanded: true,
|
||||
})
|
||||
},
|
||||
renameFeed: function(feed) {
|
||||
var newTitle = prompt('Enter new title', feed.title)
|
||||
feed.title = newTitle
|
||||
this.settingsManageDropdown = null
|
||||
},
|
||||
deleteFeed: function(feed) {
|
||||
if (confirm('Are you sure you want to delete ' + feed.title + '?')) {
|
||||
this.feeds = this.feeds.filter(function(f) { f.id != feed.id })
|
||||
}
|
||||
},
|
||||
hideSettingsMenu: function() {
|
||||
this.settingsManageDropdown = null
|
||||
},
|
||||
hideSettingsModal: function() {
|
||||
this.settingsShow = false
|
||||
},
|
||||
}
|
||||
})
|
||||
vm.settingsShow = true
|
||||
|
Reference in New Issue
Block a user