mirror of
https://github.com/matrix-org/matrix-hookshot.git
synced 2025-03-10 13:17:08 +00:00
Include 'update' state in oauth page (#717)
* Include 'update' state in ouath page * changelog * words * Update 717.bugfix * Update oauth.tsx
This commit is contained in:
parent
9bd46e4dc5
commit
4bb4b56875
1
changelog.d/717.bugfix
Normal file
1
changelog.d/717.bugfix
Normal file
@ -0,0 +1 @@
|
||||
Add information about GitHub App Installs in 'update' state on the oauth status page.
|
@ -26,16 +26,18 @@ function RenderOAuth() {
|
||||
|
||||
if (result === 'error') {
|
||||
return <>
|
||||
<h1>Could not connect your { serviceName } {oauthKind} to Hookshot.</h1>
|
||||
<h1>Could not connect your { serviceName } { oauthKind } to Hookshot.</h1>
|
||||
<p>
|
||||
<code>{errcode}</code> {error}
|
||||
</p>
|
||||
</>;
|
||||
} else if (result === 'pending') {
|
||||
// Pending / update are mostly the same thing. Pending means a new app install, update means updating the existing app install.
|
||||
} else if (result === 'pending' || result === 'update') {
|
||||
return <>
|
||||
<h1>Your connection to { serviceName } {oauthKind} is pending.</h1>
|
||||
<h1>The connection to your { serviceName } { oauthKind } is pending.</h1>
|
||||
<p>
|
||||
The owner may need to approve this.
|
||||
You will need to wait for an administrator of the { serviceName } {oauthKind} instance to approve
|
||||
the new installation. If you think this is a mistake, contact the administrator of your organisation.
|
||||
</p>
|
||||
</>;
|
||||
} else if (result === 'success') {
|
||||
@ -45,7 +47,7 @@ function RenderOAuth() {
|
||||
</>;
|
||||
}
|
||||
return <>
|
||||
<h1>Your connection to { serviceName } {oauthKind} is {result}.</h1>
|
||||
<h1>The connection to your { serviceName } { oauthKind } is { result }.</h1>
|
||||
<p>
|
||||
This is an unknown state, you may need to contact your systems administrator.
|
||||
</p>
|
||||
|
Loading…
x
Reference in New Issue
Block a user