0

Stop leaking instances via links. Closes https://github.com/owncast/owncast/issues/822

This commit is contained in:
Gabe Kangas 2021-03-22 20:43:25 -07:00
parent 6046f91e48
commit aefe884daf
2 changed files with 17 additions and 9 deletions

View File

@ -73,8 +73,13 @@ function NewActionModal(props: Props) {
okButtonProps={okButtonProps}
>
<div>
Add the URL for the external action you want to present. <strong>Only HTTPS urls are supported.</strong>
<p><a href="https://owncast.online/docs">Read more about external actions.</a></p>
Add the URL for the external action you want to present.{' '}
<strong>Only HTTPS urls are supported.</strong>
<p>
<a href="https://owncast.online/docs" target="_blank" rel="noopener noreferrer">
Read more about external actions.
</a>
</p>
<p>
<Input
value={actionUrl}
@ -91,7 +96,6 @@ function NewActionModal(props: Props) {
onChange={input => setActionTitle(input.currentTarget.value)}
/>
</p>
<p>
<Input
value={actionDescription}
@ -99,7 +103,6 @@ function NewActionModal(props: Props) {
onChange={input => setActionDescription(input.currentTarget.value)}
/>
</p>
<p>
<Input
value={actionIcon}
@ -107,7 +110,6 @@ function NewActionModal(props: Props) {
onChange={input => setActionIcon(input.currentTarget.value)}
/>
</p>
<p>
<Input
type="color"
@ -116,7 +118,6 @@ function NewActionModal(props: Props) {
/>
Optional background color of the action button.
</p>
<Checkbox
checked={openExternally}
defaultChecked={openExternally}
@ -279,7 +280,8 @@ export default function Actions() {
<Paragraph>Description goes here.</Paragraph>
<Paragraph>
Read more about how to use actions, with examples, at{' '}
<a href="https://owncast.online/thirdparty/?source=admin">our documentation</a>.
<a href="https://owncast.online/thirdparty/?source=admin" target="_blank"
rel="noopener noreferrer">our documentation</a>.
</Paragraph>
<Table rowKey="id" columns={columns} dataSource={actions} pagination={false} />

View File

@ -130,8 +130,14 @@ export default function ViewersOverTime() {
<p>
<Typography.Text type="secondary">
Visit the{' '}
<a href="https://owncast.online/docs/viewers/?source=admin">documentation</a> to
configure additional details about your viewers.
<a
href="https://owncast.online/docs/viewers/?source=admin"
target="_blank"
rel="noopener noreferrer"
>
documentation
</a>{' '}
to configure additional details about your viewers.
</Typography.Text>{' '}
</p>
</div>