fixes category and storing list view
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<a href="#{{scope}}" class="action link{{#if rootIsSelected}} text-bold{{/if}}" data-action="selectRoot">{{rootName}}</a>
|
||||
{{/if}}
|
||||
{{#if showEditLink}}
|
||||
<a href="#{{scope}}" class="small pull-right" title="{{translate 'Manage Categories' scope=scope}}"><span class="glyphicon glyphicon-th-list"></span></a>
|
||||
<a href="#{{scope}}" class="small pull-right action" data-action="manageCategories" title="{{translate 'Manage Categories' scope=scope}}"><span class="glyphicon glyphicon-th-list"></span></a>
|
||||
{{/if}}
|
||||
|
||||
<ul class="list-group list-group-tree list-group-no-border">
|
||||
|
||||
@@ -156,8 +156,12 @@ Espo.define('views/list-with-categories', 'views/list', function (Dep) {
|
||||
data[nameAttribute] = this.currentCategoryName;
|
||||
return data;
|
||||
}
|
||||
},
|
||||
|
||||
actionManageCategories: function () {
|
||||
this.clearView('categories');
|
||||
this.getRouter().navigate('#' + this.categoryScope, {trigger: true});
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -30,6 +30,8 @@ Espo.define('views/user/list', 'views/list', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
storeViewAfterUpdate: false,
|
||||
|
||||
setup: function () {
|
||||
Dep.prototype.setup.call(this);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user