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

Remove ellipsis from redirect url #962

Merged
merged 23 commits into from
Jun 29, 2022

Conversation

alexandradumitru22
Copy link
Contributor

Related to #961

StefanNedelcu and others added 23 commits June 2, 2022 19:07
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
Signed-off-by: Robert Gogete <gogeterobert@yahoo.com>
…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 <gogeterobert@yahoo.com>
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