Commit 02773f1e authored by Luke Bennett's avatar Luke Bennett

Rename all push_pull to mirror_repos

parent b5fea573
import initForm from '../form'; import initForm from '../form';
import PushPull from './push_pull'; import MirrorRepos from './mirror_repos';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
initForm(); initForm();
const pushPullContainer = document.querySelector('.js-mirror-settings'); const mirrorReposContainer = document.querySelector('.js-mirror-settings');
if (pushPullContainer) new PushPull(pushPullContainer).init(); if (mirrorReposContainer) new MirrorRepos(mirrorReposContainer).init();
}); });
...@@ -4,7 +4,7 @@ import { __ } from '~/locale'; ...@@ -4,7 +4,7 @@ import { __ } from '~/locale';
import Flash from '~/flash'; import Flash from '~/flash';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
export default class PushPull { export default class MirrorRepos {
constructor(container) { constructor(container) {
this.$container = $(container); this.$container = $(container);
this.$form = $('.js-mirror-form', this.$container); this.$form = $('.js-mirror-form', this.$container);
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
= render_if_exists 'projects/mirrors/direction_dropdown', options: options = render_if_exists 'projects/mirrors/direction_dropdown', options: options
= render 'projects/mirrors/push_pull_form', can_push: can_push, can_pull: can_pull, f: f = render 'projects/mirrors/mirror_repos_form', can_push: can_push, can_pull: can_pull, f: f
.form-check.append-bottom-10 .form-check.append-bottom-10
= check_box_tag :only_protected_branches, '1', false, class: 'js-mirror-protected form-check-input' = check_box_tag :only_protected_branches, '1', false, class: 'js-mirror-protected form-check-input'
......
= render 'projects/mirrors/push_pull' = render 'projects/mirrors/mirror_repos'
import $ from 'jquery'; import $ from 'jquery';
import { __ } from '~/locale'; import { __ } from '~/locale';
import Flash from '~/flash'; import Flash from '~/flash';
import PushPull from '~/pages/projects/settings/repository/show/push_pull'; import MirrorRepos from '~/pages/projects/settings/repository/show/mirror_repos';
import MirrorPull from 'ee/mirrors/mirror_pull'; import MirrorPull from 'ee/mirrors/mirror_pull';
export default class EEPushPull extends PushPull { export default class EEMirrorRepos extends MirrorRepos {
constructor(...args) { constructor(...args) {
super(...args); super(...args);
......
...@@ -13,7 +13,7 @@ import CEProtectedBranchEditList from '~/protected_branches/protected_branch_edi ...@@ -13,7 +13,7 @@ import CEProtectedBranchEditList from '~/protected_branches/protected_branch_edi
import CEProtectedTagCreate from '~/protected_tags/protected_tag_create'; import CEProtectedTagCreate from '~/protected_tags/protected_tag_create';
import CEProtectedTagEditList from '~/protected_tags/protected_tag_edit_list'; import CEProtectedTagEditList from '~/protected_tags/protected_tag_edit_list';
import DueDateSelectors from '~/due_date_select'; import DueDateSelectors from '~/due_date_select';
import EEPushPull from './ee_push_pull'; import EEMirrorRepos from './ee_mirror_repos';
document.addEventListener('DOMContentLoaded', () => { document.addEventListener('DOMContentLoaded', () => {
new UsersSelect(); new UsersSelect();
...@@ -37,7 +37,7 @@ document.addEventListener('DOMContentLoaded', () => { ...@@ -37,7 +37,7 @@ document.addEventListener('DOMContentLoaded', () => {
} }
const pushPullContainer = document.querySelector('.js-mirror-settings'); const pushPullContainer = document.querySelector('.js-mirror-settings');
if (pushPullContainer) new EEPushPull(pushPullContainer).init(); if (pushPullContainer) new EEMirrorRepos(pushPullContainer).init();
new DueDateSelectors(); new DueDateSelectors();
}); });
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