mirror of
https://github.com/datahub-project/datahub.git
synced 2025-09-01 13:23:09 +00:00
rebase on deprecated browse feature
This commit is contained in:
parent
1eba5288a9
commit
b1a347abaa
@ -3,7 +3,6 @@ import { setProperties } from '@ember/object';
|
||||
import AuthenticatedRouteMixin from 'ember-simple-auth/mixins/authenticated-route-mixin';
|
||||
import { refreshModelQueryParams } from 'wherehows-web/utils/helpers/routes';
|
||||
import BrowseEntityController from 'wherehows-web/controllers/browse/entity';
|
||||
import Configurator from 'wherehows-web/services/configurator';
|
||||
|
||||
const queryParamsKeys: Array<keyof IBrowserRouteParams> = ['page', 'prefix', 'platform', 'size'];
|
||||
|
||||
@ -31,13 +30,10 @@ export default class BrowseEntity extends Route.extend(AuthenticatedRouteMixin,
|
||||
queryParams = refreshModelQueryParams(queryParamsKeys);
|
||||
|
||||
setupController(this: BrowseEntity, controller: BrowseEntityController, model: IBrowserRouteParams) {
|
||||
const { getConfig } = Configurator;
|
||||
|
||||
// sets the entity property on the controller in addition to the model
|
||||
setProperties(controller, {
|
||||
model,
|
||||
entity: model.entity,
|
||||
shouldShowBrowserRevamp: getConfig('shouldShowBrowserRevamp')
|
||||
entity: model.entity
|
||||
});
|
||||
}
|
||||
|
||||
|
@ -8,7 +8,6 @@ import { DatasetPlatform } from 'wherehows-web/constants';
|
||||
interface IAppConfig {
|
||||
isInternal: boolean | void;
|
||||
JitAclAccessWhitelist: Array<DatasetPlatform> | void;
|
||||
shouldShowBrowserRevamp: boolean;
|
||||
shouldShowDatasetLineage: boolean;
|
||||
tracking: {
|
||||
isEnabled: boolean;
|
||||
|
Loading…
x
Reference in New Issue
Block a user