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

Fixes #56 Alternative pull-secret info dialog #101

Merged
merged 1 commit into from
May 10, 2023

Conversation

gbraad
Copy link
Contributor

@gbraad gbraad commented May 10, 2023

Temporary solution to add an informational dialog before the pull-secret input.

image

@gbraad gbraad requested a review from evidolob May 10, 2023 06:12
src/crc-start.ts Outdated
@@ -88,6 +88,10 @@ export async function startCrc(
}

async function askAndStorePullSecret(logger: extensionApi.Logger): Promise<boolean> {
extensionApi.window.showInformationMessage(`To pull container images from the registry, a pull secret is necessary. You can get a pull secret from the Red Hat OpenShift Local download page by navigating to the dashboard and clicking the "Obtain pull-secret" or opening the following address in your browser https://cloud.redhat.com/openshift/create/local
Copy link
Contributor

Choose a reason for hiding this comment

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

await before extensionApi.window.showInformationMessage helps do not show extensionApi.window.showInputBox until user click on Continue

Copy link
Contributor Author

@gbraad gbraad May 10, 2023

Choose a reason for hiding this comment

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

I considered this... but in this way it is more obvious the dialog is in focus.
It also allows you to actually navigate with the browser and actually paste the value in.

@gbraad gbraad force-pushed the alternative-pullsecret branch from 142e30a to d1e1170 Compare May 10, 2023 06:14
@gbraad gbraad merged commit 1ff30fa into crc-org:main May 10, 2023
@gbraad gbraad deleted the alternative-pullsecret branch May 10, 2023 06:22
@gbraad
Copy link
Contributor Author

gbraad commented May 10, 2023

Note: this is hopefully a temporary solution

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

Successfully merging this pull request may close these issues.

2 participants