cs
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
|
||||
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user