Skip to content

Commit

Permalink
Merge pull request #9815 from brave/isse-17604
Browse files Browse the repository at this point in the history
Use valid validation gateway in dialog
  • Loading branch information
spylogsster authored Aug 23, 2021
2 parents 44e516b + df1f108 commit d0036e8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<div slot="body">
<cr-input id="url" label="$i18n{changeIpfsGatewayDialogLabel}"
type="url" placeholder="https://dweb.link"
value="{{prefs.brave.ipfs.public_gateway_address.value}}" invalid="[[!isUrlValid_]]"
invalid="[[!isUrlValid_]]"
error-message="$i18n{ipfsErrorInvalidAddress}" spellcheck="false"
on-input=urlChanged_
autofocus>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ Polymer({
created: function() {
this.browserProxy_ = BraveIPFSBrowserProxyImpl.getInstance();
},

/** @override */
ready: function() {
this.$.url.value = this.getPref('brave.ipfs.public_gateway_address').value;
},

/** @private */
urlChanged_: function() {
const url_ = this.$.url.value
Expand Down

0 comments on commit d0036e8

Please sign in to comment.