Changing server url was resetting other updated fields (#86)

* changing url was resetting other fields. Closes https://github.com/owncast/owncast/issues/854

* specify config path for various instanceDetails fields instead

* fix react warning

Co-authored-by: gingervitis <omqmail@gmail.com>
This commit is contained in:
Gabe Kangas
2021-03-24 14:12:22 -07:00
committed by GitHub
parent 396eafcbd2
commit ea1ed11e72
3 changed files with 13 additions and 6 deletions

View File

@@ -124,13 +124,12 @@ export default function EditInstanceDetails() {
Learn more
</a>
.
{!yp.instanceUrl && (
<div>
<br />
You must set your server URL above to enable the directory.
</div>
)}
</p>
{!yp.instanceUrl && (
<p className="description">
You must set your <strong>Server URL</strong> above to enable the directory.
</p>
)}
<div className="config-yp-container">
<ToggleSwitch