Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: visual bug #3069

Merged
merged 1 commit into from
Sep 5, 2022
Merged

fix: visual bug #3069

merged 1 commit into from
Sep 5, 2022

Conversation

jLopezbarb
Copy link
Contributor

Signed-off-by: Javier López Barba javier@okteto.com

Proposed changes

Fixes #2821

  • Clean the name(remove the *) after selecting the context

Screenshots

Captura de pantalla 2022-09-05 a las 13 39 19

Captura de pantalla 2022-09-05 a las 13 39 27

Signed-off-by: Javier López Barba <javier@okteto.com>
@jLopezbarb jLopezbarb requested a review from a team September 5, 2022 11:41
@jLopezbarb jLopezbarb merged commit 4d4384c into master Sep 5, 2022
@jLopezbarb jLopezbarb deleted the jlopezbarb/fix-ctx-visual-bug branch September 5, 2022 15:59
@@ -275,8 +275,7 @@ func (s *OktetoSelector) run(initialPosition int) (string, error) {
return "", err
}

items, idx := l.Items()
item := items[idx]
item := strings.TrimSpace(strings.TrimSuffix(s.Items[l.Index()].Name, " *"))
Copy link
Contributor

Choose a reason for hiding this comment

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

Wouldn't it be better to not save it with the *? We could change the run function to not modify the selector Items

Copy link
Contributor Author

Choose a reason for hiding this comment

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

We need it to show what's the actual one, and we can't change the behavior of the function

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Minor output issue when selecting the current context again
3 participants