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