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
@ -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();
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user