Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

feat(dialog): add default value to prompt preset. #7090

Closed

Conversation

devversion
Copy link
Member

Fixes #7046

@@ -521,7 +522,8 @@ function MdDialogProvider($$interimElementProvider) {
' <p>{{::dialog.mdTextContent}}</p>',
' </div>',
' <md-input-container md-no-float ng-if="::dialog.$type == \'prompt\'" class="md-prompt-input-container">',

Choose a reason for hiding this comment

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

@devversion should this be changed to === instead of == while you're in the area?

PR looks good, thanks for doing this.

Copy link
Member Author

Choose a reason for hiding this comment

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

@zbjornson The IDE's and Linters are throwing a warning when using that.

@devversion devversion added the needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved label Feb 27, 2016
@devversion devversion self-assigned this Feb 27, 2016
@devversion devversion force-pushed the feat/dialog-prompt-defaultvalue branch from df9091e to 09d1765 Compare February 27, 2016 16:10
@devversion devversion added needs: review This PR is waiting on review from the team and removed needs: rebase This PR needs to be rebased on the latest commits from master and conflicts need to be resolved labels Feb 27, 2016
@devversion devversion assigned EladBezalel and unassigned devversion Feb 27, 2016
@@ -383,6 +383,7 @@ function MdDialogDirective($$rAF, $mdTheming, $mdDialog) {
* - $mdDialogPreset#title(string) - Sets the prompt title.
* - $mdDialogPreset#textContent(string) - Sets the prompt message.
* - $mdDialogPreset#htmlContent(string) - Sets the prompt message as HTML. Requires ngSanitize
* - $mdDialogPreset#defaultValue(string) - Sets the default value for the prompt input.
Copy link
Member

Choose a reason for hiding this comment

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

wrong position, you accidentally spliced the line above

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed, thank you 👍

@@ -503,7 +504,7 @@ function MdDialogProvider($$interimElementProvider) {
options: advancedDialogOptions
})
.addPreset('prompt', {
methods: ['title', 'htmlContent', 'textContent', 'content', 'placeholder', 'ariaLabel',
methods: ['title', 'htmlContent', 'textContent', 'defaultValue', 'content', 'placeholder', 'ariaLabel',
Copy link
Contributor

Choose a reason for hiding this comment

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

I think initialValue is a better name.

Copy link
Member Author

Choose a reason for hiding this comment

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

I respected the window.prompt reference here.

Copy link
Member Author

Choose a reason for hiding this comment

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

@ThomasBurleson Finally updated. Sorry for the delay ;)

@ThomasBurleson ThomasBurleson added needs: work in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs and removed needs: review This PR is waiting on review from the team labels Apr 19, 2016
@ThomasBurleson ThomasBurleson modified the milestones: 1.1.1, Backlog Apr 19, 2016
@ThomasBurleson ThomasBurleson modified the milestones: - Backlog, Deprecated May 26, 2016
@devversion devversion modified the milestones: - Backlog, Deprecated May 27, 2016
@devversion devversion force-pushed the feat/dialog-prompt-defaultvalue branch from f4c9822 to c3bb7e0 Compare May 27, 2016 10:20
@devversion devversion added needs: review This PR is waiting on review from the team and removed in progress Mainly for in progress PRs, but may be used for issues that require multiple PRs needs: work labels May 27, 2016
@devversion devversion deleted the feat/dialog-prompt-defaultvalue branch June 3, 2016 17:27
@Splaktar Splaktar removed this from the - Backlog milestone Jun 28, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
needs: review This PR is waiting on review from the team
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants