Skip to content

Commit

Permalink
feat(organizations): remove hardcoded team label env var TASK-1083 (#…
Browse files Browse the repository at this point in the history
…5232)

### 📣 Summary
Use the backend env response to set `use_team_label` in the `envStore`.
  • Loading branch information
jamesrkiger authored Nov 6, 2024
1 parent 3cdd897 commit 709e65a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions jsapp/js/envStore.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,7 @@ export interface EnvironmentResponse {
transcription_languages: TransxLanguages;
translation_languages: TransxLanguages;
submission_placeholder: string;
// TODO: Remove optional marker when PR#5182 is merged
use_team_label?: boolean;
use_team_label: boolean;
frontend_min_retry_time: number;
frontend_max_retry_time: number;
asr_mt_features_enabled: boolean;
Expand Down Expand Up @@ -215,8 +214,7 @@ class EnvStore {
this.data.project_metadata_fields = response.project_metadata_fields;
this.data.user_metadata_fields = response.user_metadata_fields;
this.data.submission_placeholder = response.submission_placeholder;
// TODO: Assign response value when PR#5182 is merged
this.data.use_team_label = true;
this.data.use_team_label = response.use_team_label;
this.data.mfa_localized_help_text = response.mfa_localized_help_text;
this.data.mfa_enabled = response.mfa_enabled;
this.data.mfa_per_user_availability = response.mfa_per_user_availability;
Expand Down

0 comments on commit 709e65a

Please sign in to comment.