This commit is contained in:
Yuri Kuznetsov
2023-06-24 08:53:46 +03:00
parent c78962f5f6
commit 31caa27d39
3 changed files with 9 additions and 7 deletions
+4 -2
View File
@@ -28,13 +28,13 @@
/** @module app-portal */
import Dep from 'app';
import App from 'app';
import AclPortalManager from 'acl-portal-manager';
/**
* A portal application class.
*/
export default class extends Dep {
class AppPortal extends App {
aclName = 'aclPortal'
masterView = 'views/site-portal/master'
@@ -47,3 +47,5 @@ export default class extends Dep {
);
}
}
export default AppPortal
+2 -2
View File
@@ -375,10 +375,10 @@ class DetailView extends MainView {
* @param {string} name A relationship name.
*/
updateRelationshipPanel(name) {
var bottom = this.getView('record').getView('bottom');
let bottom = this.getView('record').getView('bottom');
if (bottom) {
var rel = bottom.getView(name);
let rel = bottom.getView(name);
if (rel) {
rel.collection.fetch();
+3 -3
View File
@@ -439,9 +439,9 @@ class ListView extends MainView {
* Set up a search manager.
*/
setupSearchManager() {
var collection = this.collection;
let collection = this.collection;
var searchManager = new SearchManager(
const searchManager = new SearchManager(
collection,
'list',
this.getStorage(),
@@ -472,7 +472,7 @@ class ListView extends MainView {
* Apply stored sorting.
*/
applyStoredSorting() {
var sortingParams = this.getStorage().get('listSorting', this.collection.entityType) || {};
let sortingParams = this.getStorage().get('listSorting', this.collection.entityType) || {};
if ('orderBy' in sortingParams) {
this.collection.orderBy = sortingParams.orderBy;