rebase on deprecated browse feature

This commit is contained in:
Seyi Adebajo 2018-07-24 12:32:27 -07:00
parent 1eba5288a9
commit b1a347abaa
2 changed files with 1 additions and 6 deletions

View File

@ -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')
}); });
} }

View File

@ -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;