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:
Abijeet Patro 2018-01-08 16:01:53 +05:30 committed by Kevin Ansfield
parent cc33fa899d
commit 57c20d5aae

View File

@ -65,6 +65,7 @@ export default Controller.extend({
},
updateURL(value) {
value = typeof value === 'string' ? value.trim() : value;
this.set('model.url', value);
this.get('model.errors').clear();
},