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

Closed
1 task done
sandipchitale opened this issue Nov 27, 2024 · 1 comment
Labels
area/extensions Relates to Docker Extensions lifecycle/stale

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
@docker-robot
Copy link

docker-robot bot commented Feb 25, 2025

There hasn't been any activity on this issue for a long time.
If the problem is still relevant, mark the issue as fresh with a /remove-lifecycle stale comment.
If not, this issue will be closed in 14 days. This helps our maintainers focus on the active issues.

Prevent issues from auto-closing with a /lifecycle frozen comment.

/lifecycle stale

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 lifecycle/stale
Projects
None yet
Development

No branches or pull requests

2 participants