[FIX] web: only display last part of breadcrumbs in tab title

This commit is contained in:
Géry Debongnie
2015-12-29 16:06:18 +01:00
parent c4240b547f
commit 031a3f8a4f
+2 -1
View File
@@ -336,7 +336,8 @@ var ActionManager = Widget.extend({
return action.title;
}
}
return _.pluck(this.get_breadcrumbs(), 'title').join(' / ');
var last_breadcrumb = _.last(this.get_breadcrumbs());
return last_breadcrumb ? last_breadcrumb.title : "";
},
get_action_stack: function () {
return this.action_stack;