feat: can specify available UI languages for an organization (#1306)

This commit is contained in:
Yaodong Yu
2022-11-19 22:11:19 +08:00
committed by GitHub
parent b98ce19211
commit 19ba37e0c2
17 changed files with 75 additions and 31 deletions

View File

@ -636,7 +636,7 @@ class App extends Component {
{
this.renderAccount()
}
<SelectLanguageBox />
{this.state.account && <SelectLanguageBox languages={this.state.account.organization.languages} />}
</div>
</Header>
<Layout style={{backgroundColor: "#f5f5f5", alignItems: "stretch"}}>
@ -680,7 +680,7 @@ class App extends Component {
{
this.renderAccount()
}
<SelectLanguageBox />
{this.state.account && <SelectLanguageBox languages={this.state.account.organization.languages} />}
</div>
</Header>
{