-
Notifications
You must be signed in to change notification settings - Fork 337
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
Add Action.ChooseFile for adaptive cards #2477
Conversation
@krschau - this is the starting point we can work from, still got some refactoring, UI clean up etc. to finish! |
tools/Dashboard/DevHome.Dashboard/ViewModels/WidgetViewModel.cs
Outdated
Show resolved
Hide resolved
1f64109
to
b383d43
Compare
b383d43
to
d86f2af
Compare
…renderer in the dev home widget AC Host... Includes changes to the SSH Keychain core widget to include the file picker action
18d0b93
to
a2c75d3
Compare
|
||
// Parse the JSON properties of the action. | ||
// The Verb ChooseFile is not meant to be localized. | ||
Verb = inputJson.GetNamedString("verb", "ChooseFile"), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The verb in this case is always intended to be "ChooseFile"? Should the user be able to use a different string for this verb?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This should get the verb specified in the card, and if one is not specified, use the default of "ChooseFile".
Summary of the pull request
The Action.ChooseFile adaptive card element allows a card author to launch a File Picker from Dev Home and obtain the chosen file. If no file is chosen, the "FilePath" field will be null. The author may use the action as an "inlineAction" on a Text input. The SSH Keychain widget uses the action this way.
This action is experimental while it goes through API review.
References and relevant issues
Detailed description of the pull request / Additional comments
Validation steps performed
PR checklist