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 @@ -321,6 +321,9 @@ export async function configurePlatform (onWorkbenchConnect?: () => Promise<void
321321 setMetadata ( presentation . metadata . HulylakeUrl , config . HULYLAKE_URL ?? '' )
322322 setMetadata ( presentation . metadata . PulseUrl , config . PULSE_URL ?? '' )
323323
324+ const disabledFeatures = ( config . DISABLED_FEATURES ?? '' ) . split ( ',' ) . map ( it => it . trim ( ) ) . filter ( it => it . length > 0 )
325+ setMetadata ( presentation . metadata . DisabledFeatures , new Set ( disabledFeatures ) )
326+
324327 setMetadata ( textEditor . metadata . Collaborator , config . COLLABORATOR ?? '' )
325328
326329 setMetadata ( github . metadata . GithubApplication , config . GITHUB_APP ?? '' )
@@ -451,6 +454,7 @@ export async function configurePlatform (onWorkbenchConnect?: () => Promise<void
451454 addLocation ( ratingId , async ( ) => await import ( /* webpackChunkName: "rating" */ '@hcengineering/rating-resources' ) )
452455
453456 setMetadata ( client . metadata . FilterModel , 'ui' )
457+ setMetadata ( client . metadata . ExtraFilter , disabledFeatures )
454458 setMetadata ( client . metadata . ExtraPlugins , [ 'preference' as Plugin ] )
455459
456460 // 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