mirror of
https://github.com/TryGhost/Ghost.git
synced 2025-02-24 23:48:13 -05:00
Prevent "Invalid URL" errors due to trailing spaces when editing Slack Webhook URL (#925)
no issue - trim the slack URL in the `updateURL` action
This commit is contained in:
parent
cc33fa899d
commit
57c20d5aae
1 changed files with 1 additions and 0 deletions
|
@ -65,6 +65,7 @@ export default Controller.extend({
|
||||||
},
|
},
|
||||||
|
|
||||||
updateURL(value) {
|
updateURL(value) {
|
||||||
|
value = typeof value === 'string' ? value.trim() : value;
|
||||||
this.set('model.url', value);
|
this.set('model.url', value);
|
||||||
this.get('model.errors').clear();
|
this.get('model.errors').clear();
|
||||||
},
|
},
|
||||||
|
|
Loading…
Add table
Reference in a new issue