Thanks to visit codestin.com
Credit goes to github.com

Skip to content
This repository was archived by the owner on Oct 28, 2024. It is now read-only.

Remove ellipsis from redirect url#962

Merged
bacongobbler merged 23 commits intodeislabs:mainfrom
equilobe:remove-ellipsis-from-redirect-url
Jun 29, 2022
Merged

Remove ellipsis from redirect url#962
bacongobbler merged 23 commits intodeislabs:mainfrom
equilobe:remove-ellipsis-from-redirect-url

Conversation

@alexandradumitru22
Copy link

Related to #961

StefanNedelcu and others added 23 commits June 2, 2022 19:07
…f-screen

Bugfix 839/right panel scroll off screen
…rking-as-expected

Bugfix 849/update channel not working as expected
Now getting status of the job from Nomad
Signed-off-by: Robert Gogete <[email protected]>
Copy link
Contributor

@bacongobbler bacongobbler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!


getRedirectRoute(route: string): string {
if (route) {
if (route.slice(-3) === '...') {
Copy link
Contributor

@bacongobbler bacongobbler Jun 29, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

for self-reference, this appears to be a safe call. From https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Array/slice#parameters:

If start is greater than the index range of the sequence, an empty array is returned.

So in cases where route is shorter than an ellipsis, it should jump to the else clause.

@bacongobbler bacongobbler merged commit f2eb90d into deislabs:main Jun 29, 2022
@bacongobbler bacongobbler added enhancement New feature or request UI Requires changes to the user interface labels Jun 29, 2022
@alexandradumitru22 alexandradumitru22 deleted the remove-ellipsis-from-redirect-url branch June 30, 2022 10:19
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

enhancement New feature or request UI Requires changes to the user interface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants