Skip to content

Commit

Permalink
add registration error message for cloud.drone.io (#415)
Browse files Browse the repository at this point in the history
  • Loading branch information
Dan Wilson committed Apr 14, 2022
1 parent c541944 commit 888ab45
Showing 1 changed file with 21 additions and 1 deletion.
22 changes: 21 additions & 1 deletion src/pages/welcome/welcome.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,27 @@ export default function Welcome() {
error = <div className={cx('error')}>Your session has been successfully terminated.</div>;
break;
case '/login/error':
error = <div className={cx('error')}>{parseQuery(search)?.message ?? 'An error occured during login attempt, please, try again'}</div>;
if (window.location.host === 'cloud.drone.io') {
// special case for cloud.drone.io
error = (
<div className={cx('error')}>
Drone Cloud is no longer accepting new registrations. We recommend
{' '}
<a href="https://docs.drone.io/server/overview/">installing Drone</a>
{' '}
on your own hardware, or you can try out the new
{' '}
<a href="https://harness.io/products/continuous-integration">Harness CI Cloud</a>
.
</div>
);
} else {
error = (
<div className={cx('error')}>
{parseQuery(search)?.message ?? 'An error occured during login attempt, please, try again'}
</div>
);
}
break;
default:
}
Expand Down

0 comments on commit 888ab45

Please sign in to comment.