Commit 0d328e5c authored by Kushal Pandya's avatar Kushal Pandya

Merge branch 'mg-remove-vestigial-dropdown-code' into 'master'

Remove vestigial references to deprecated jQuery dropdown in Repository -> Compare

See merge request gitlab-org/gitlab!61416
parents 154416fd ec5938f5
import initCompareAutocomplete from '~/compare_autocomplete';
document.addEventListener('DOMContentLoaded', () => initCompareAutocomplete());
import $ from 'jquery'; import $ from 'jquery';
import initCompareAutocomplete from '~/compare_autocomplete';
import axios from '~/lib/utils/axios_utils'; import axios from '~/lib/utils/axios_utils';
import { localTimeAgo } from '~/lib/utils/datetime_utility'; import { localTimeAgo } from '~/lib/utils/datetime_utility';
import initCompareAutocomplete from './compare_autocomplete';
import initTargetProjectDropdown from './target_project_dropdown'; import initTargetProjectDropdown from './target_project_dropdown';
const updateCommitList = (url, $loadingIndicator, $commitList, params) => { const updateCommitList = (url, $loadingIndicator, $commitList, params) => {
......
...@@ -2,11 +2,11 @@ ...@@ -2,11 +2,11 @@
import $ from 'jquery'; import $ from 'jquery';
import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown'; import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown';
import { deprecatedCreateFlash as flash } from '~/flash';
import axios from '~/lib/utils/axios_utils';
import { capitalizeFirstCharacter } from '~/lib/utils/text_utility';
import { __ } from '~/locale';
import { fixTitle } from '~/tooltips'; import { fixTitle } from '~/tooltips';
import { deprecatedCreateFlash as flash } from './flash';
import axios from './lib/utils/axios_utils';
import { capitalizeFirstCharacter } from './lib/utils/text_utility';
import { __ } from './locale';
export default function initCompareAutocomplete(limitTo = null, clickHandler = () => {}) { export default function initCompareAutocomplete(limitTo = null, clickHandler = () => {}) {
$('.js-compare-dropdown').each(function () { $('.js-compare-dropdown').each(function () {
......
...@@ -129,7 +129,7 @@ export default { ...@@ -129,7 +129,7 @@ export default {
<input type="hidden" :name="paramsName" :value="selectedRevision" /> <input type="hidden" :name="paramsName" :value="selectedRevision" />
<gl-dropdown <gl-dropdown
class="gl-w-full gl-font-monospace" class="gl-w-full gl-font-monospace"
toggle-class="form-control compare-dropdown-toggle js-compare-dropdown gl-min-w-0" toggle-class="form-control compare-dropdown-toggle gl-min-w-0"
:text="selectedRevision" :text="selectedRevision"
:header-text="s__('CompareRevisions|Select Git revision')" :header-text="s__('CompareRevisions|Select Git revision')"
:loading="loading" :loading="loading"
......
...@@ -112,7 +112,7 @@ export default { ...@@ -112,7 +112,7 @@ export default {
<input type="hidden" :name="paramsName" :value="selectedRevision" /> <input type="hidden" :name="paramsName" :value="selectedRevision" />
<gl-dropdown <gl-dropdown
class="gl-flex-grow-1 gl-flex-basis-0 gl-min-w-0 gl-font-monospace" class="gl-flex-grow-1 gl-flex-basis-0 gl-min-w-0 gl-font-monospace"
toggle-class="form-control compare-dropdown-toggle js-compare-dropdown gl-min-w-0 gl-rounded-top-left-none! gl-rounded-bottom-left-none!" toggle-class="form-control compare-dropdown-toggle gl-min-w-0 gl-rounded-top-left-none! gl-rounded-bottom-left-none!"
:text="selectedRevision" :text="selectedRevision"
header-text="Select Git revision" header-text="Select Git revision"
:loading="loading" :loading="loading"
......
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