File tree Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Expand file tree Collapse file tree 2 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -360,6 +360,9 @@ export async function configurePlatform (onWorkbenchConnect?: () => Promise<void
360360 setMetadata ( presentation . metadata . HulylakeUrl , config . HULYLAKE_URL ?? '' )
361361 setMetadata ( presentation . metadata . PulseUrl , config . PULSE_URL ?? '' )
362362
363+ const disabledFeatures = ( config . DISABLED_FEATURES ?? '' ) . split ( ',' ) . map ( it => it . trim ( ) ) . filter ( it => it . length > 0 )
364+ setMetadata ( presentation . metadata . DisabledFeatures , new Set ( disabledFeatures ) )
365+
363366 setMetadata ( textEditor . metadata . Collaborator , config . COLLABORATOR ?? '' )
364367
365368 setMetadata ( github . metadata . GithubApplication , config . GITHUB_APP ?? '' )
@@ -508,6 +511,7 @@ export async function configurePlatform (onWorkbenchConnect?: () => Promise<void
508511 addLocation ( ratingId , async ( ) => await import ( /* webpackChunkName: "rating" */ '@hcengineering/rating-resources' ) )
509512
510513 setMetadata ( client . metadata . FilterModel , 'ui' )
514+ setMetadata ( client . metadata . ExtraFilter , disabledFeatures )
511515 setMetadata ( client . metadata . ExtraPlugins , [ 'preference' as Plugin ] )
512516
513517 // Use binary response transfer for faster performance and small transfer sizes.
Original file line number Diff line number Diff line change @@ -69,6 +69,7 @@ export interface Config {
6969 PASSWORD_STRICTNESS ?: 'very_strict' | 'strict' | 'normal' | 'none'
7070 EXCLUDED_APPLICATIONS_FOR_ANONYMOUS ?: string
7171 HULYLAKE_URL ?: string
72+ DISABLED_FEATURES ?: string
7273}
7374
7475export interface Branding {
You can’t perform that action at this time.
0 commit comments