From 31caa27d395c37a0b7d3d77c5b919b7786ea3e8f Mon Sep 17 00:00:00 2001 From: Yuri Kuznetsov Date: Sat, 24 Jun 2023 08:53:46 +0300 Subject: [PATCH] cs --- client/src/app-portal.js | 6 ++++-- client/src/views/detail.js | 4 ++-- client/src/views/list.js | 6 +++--- 3 files changed, 9 insertions(+), 7 deletions(-) diff --git a/client/src/app-portal.js b/client/src/app-portal.js index 79ab05a54d..4b223396a6 100644 --- a/client/src/app-portal.js +++ b/client/src/app-portal.js @@ -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 diff --git a/client/src/views/detail.js b/client/src/views/detail.js index 3d4c985f6d..fbc66056cd 100644 --- a/client/src/views/detail.js +++ b/client/src/views/detail.js @@ -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(); diff --git a/client/src/views/list.js b/client/src/views/list.js index 26225290de..4f02705df0 100644 --- a/client/src/views/list.js +++ b/client/src/views/list.js @@ -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;