Commit c554c302 authored by Luke Bennett's avatar Luke Bennett

Revert password changes to push_pull

parent cd746d71
...@@ -22,15 +22,7 @@ export default class PushPull { ...@@ -22,15 +22,7 @@ export default class PushPull {
} }
updateUrl() { updateUrl() {
let val = this.$urlInput.val(); $('.js-mirror-url-hidden', this.$form).val(this.$urlInput.val());
const $authMethod = $('.js-auth-method', this.$form);
if ($authMethod.val() === 'password') {
const password = $('.js-password', this.$form).val();
if (password) val = val.replace('@', `:${password}@`);
}
$('.js-mirror-url-hidden', this.$form).val(val);
} }
updateProtectedBranches() { updateProtectedBranches() {
...@@ -41,7 +33,7 @@ export default class PushPull { ...@@ -41,7 +33,7 @@ export default class PushPull {
} }
registerUpdateListeners() { registerUpdateListeners() {
this.debouncedUpdateUrl = _.debounce(() => this.updateUrl(), 200); this.debouncedUpdateUrl = _.debounce(() => this.updateUrl(), 500);
this.$urlInput.on('input', () => this.debouncedUpdateUrl()); this.$urlInput.on('input', () => this.debouncedUpdateUrl());
this.$protectedBranchesInput.on('change', () => this.updateProtectedBranches()); this.$protectedBranchesInput.on('change', () => this.updateProtectedBranches());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment