Skip to content

Commit

Permalink
fix(docs): fix link to "hosting language server"
Browse files Browse the repository at this point in the history
  • Loading branch information
asashour committed Feb 16, 2020
1 parent ba56f44 commit e9a68b2
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/bp/ui-admin/src/Pages/Server/Languages/LangServer.tsx
Expand Up @@ -7,7 +7,7 @@ interface Props {
langServer: LangServerInfo
}

// TODO display somthing better than this
// TODO display something better than this
const LangServer: FC<Props> = props => {
return (
<div>
Expand All @@ -18,7 +18,7 @@ const LangServer: FC<Props> = props => {
<p style={{ marginTop: 50, width: 240, textAlign: 'center' }}>
<small>
To run your own language server, follow the instructions{' '}
<a href="https://botpress.com/docs/advanced/hosting#running-your-own-language-server" target="_blank">
<a href="https://botpress.com/docs/advanced/hosting#hosting-duckling-and-the-language-server" target="_blank">
in the documentation
</a>
</small>
Expand Down
4 changes: 2 additions & 2 deletions src/bp/ui-admin/src/Pages/Server/Languages/Language.tsx
Expand Up @@ -12,9 +12,9 @@ interface Props {
name: string
size?: number
}
installed: boolean
installed?: boolean
allowActions: boolean
loaded: boolean
loaded?: boolean
languageSource: LanguageSource
downloadProgress?: any
}
Expand Down
Expand Up @@ -60,8 +60,6 @@ const LanguageManagement: FC<Props> = props => {
<Language
key={lang.code}
language={lang}
installed={false}
loaded={false}
allowActions={!props.readOnly}
languageSource={props.languageSource}
downloadProgress={languages.downloading.find(l => l.lang == lang.code)}
Expand All @@ -76,7 +74,7 @@ const LanguageManagement: FC<Props> = props => {
<Language
key={lang.code}
language={lang}
installed={true}
installed
loaded={lang.loaded}
allowActions={!props.readOnly}
languageSource={props.languageSource}
Expand Down
2 changes: 1 addition & 1 deletion src/bp/ui-admin/src/Pages/Server/Languages/index.tsx
Expand Up @@ -40,7 +40,7 @@ export default () => {
}, [])

return (
<PageContainer title="Language Management" superAdmin={true}>
<PageContainer title="Language Management" superAdmin>
{langSource && langServerInfo ? (
<div className="languages-grid">
<div>
Expand Down

0 comments on commit e9a68b2

Please sign in to comment.