Frontend typo fixes (#1315)
- fix missing org slug instead of org id change - fix login validation to check for 429 response code
This commit is contained in:
parent
d58747dfa2
commit
4b9ca44adb
@ -372,7 +372,7 @@ export class LogInPage extends LiteElement {
|
||||
} catch (e: any) {
|
||||
if (e.isApiError) {
|
||||
let message = msg("Sorry, invalid username or password");
|
||||
if (e.message == "Too Many Requests") {
|
||||
if (e.statusCode === 429) {
|
||||
message = msg(
|
||||
"Sorry, too many failed login attempts. A reset password link has been sent to your email."
|
||||
);
|
||||
|
@ -468,9 +468,7 @@ export class CrawlDetail extends LiteElement {
|
||||
<sl-menu-item
|
||||
@click=${() =>
|
||||
this.navTo(
|
||||
`/orgs/${this.crawl!.oid}/workflows/crawl/${
|
||||
this.crawl!.cid
|
||||
}`
|
||||
`${this.orgBasePath}/workflows/crawl/${this.crawl!.cid}`
|
||||
)}
|
||||
>
|
||||
<sl-icon name="arrow-return-right" slot="prefix"></sl-icon>
|
||||
|
@ -456,7 +456,7 @@ export class CrawlsList extends LiteElement {
|
||||
<sl-menu-item
|
||||
@click=${() =>
|
||||
this.navTo(
|
||||
`/orgs/${item.oid}/crawls/${
|
||||
`${this.orgBasePath}/items/${
|
||||
item.type === "upload" ? "upload" : "crawl"
|
||||
}/${item.id}`
|
||||
)}
|
||||
@ -493,7 +493,7 @@ export class CrawlsList extends LiteElement {
|
||||
() => html`
|
||||
<sl-menu-item
|
||||
@click=${() =>
|
||||
this.navTo(`/orgs/${item.oid}/workflows/crawl/${item.cid}`)}
|
||||
this.navTo(`${this.orgBasePath}/workflows/crawl/${item.cid}`)}
|
||||
>
|
||||
<sl-icon name="arrow-return-right" slot="prefix"></sl-icon>
|
||||
${msg("Go to Workflow")}
|
||||
|
Loading…
Reference in New Issue
Block a user