fix: Show correct API URL for OBS in settings page

This commit is contained in:
Paul Bienkowski 2021-12-02 21:02:11 +01:00
parent 5309527c3e
commit 2592fe029a

View file

@ -158,7 +158,7 @@ function ApiKeyDialog({login, onGenerateNewKey}) {
</div> </div>
<p>The API URL should be set to:</p> <p>The API URL should be set to:</p>
<div style={{marginBottom: 16}}> <div style={{marginBottom: 16}}>
<CopyInput label="API URL" value={config?.apiUrl ?? '...'} /> <CopyInput label="API URL" value={config?.apiUrl?.replace(/\/api$/, '') ?? '...'} />
</div> </div>
<p> <p>
You can generate a new API Key here, which will invalidate the old one, disconnecting all devices you used it on You can generate a new API Key here, which will invalidate the old one, disconnecting all devices you used it on