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

The result object returned by showOpenDialog() does not have .paths property but .filePaths property. #21511

Open
1 task done
sandipchitale opened this issue Nov 27, 2024 · 0 comments
Labels
area/extensions Relates to Docker Extensions

Comments

@sandipchitale
Copy link

Is this a docs issue?

  • My issue is about the documentation content or website

Type of issue

Information is incorrect

Description

The OpenDialogResult page shows that the result object which is of type OpenDialogResult does not have paths property. Instead it has filePaths property. Please correct the following example.

const result = await ddClient.desktopUI.dialog.showOpenDialog({
  properties: ["openDirectory"],
});
if (!result.canceled) {
  console.log(result.paths); // <-------------------- no paths but filePaths.
}

Location

https://docs.docker.com/extensions/extensions-sdk/dev/api/dashboard/

Suggestion

No response

@sandipchitale sandipchitale added the status/triage Needs triage label Nov 27, 2024
@aevesdocker aevesdocker added area/extensions Relates to Docker Extensions and removed status/triage Needs triage labels Nov 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/extensions Relates to Docker Extensions
Projects
None yet
Development

No branches or pull requests

2 participants