Add reload client action

issue4430
This commit is contained in:
Cédric Krier committed 2015-02-27 10:39:02 +01:00
1 parent 06f3f3ec7b
commit 49e35b9dcd
1 file changed
+5
+5
View File
@@ -837,6 +837,11 @@
} else if (action.startsWith('switch')) {
var view_type = action.split(' ')[1];
this.switch_view(view_type);
} else if (action == 'reload') {
if (~['tree', 'graph', 'calendar'].indexOf(this.current_view.view_type) &&
!this.group.parent) {
this.search_filter();
}
} else if (action == 'reload menu') {
Sao.get_preferences().then(function(preferences) {
Sao.menu(preferences);