diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-29 00:10:46 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-07-29 00:10:46 +0300 |
commit | 0e2a219d6a82935ec564dfb68a1d721d7a24cd6a (patch) | |
tree | f3ef106082cd32a6e10d0540f2c1e553257eebf5 /app/assets/javascripts/protected_tags | |
parent | 7c5f1bfac791045e54386b9c9bb56ee24afc68ca (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/protected_tags')
-rw-r--r-- | app/assets/javascripts/protected_tags/protected_tag_access_dropdown.js | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/app/assets/javascripts/protected_tags/protected_tag_access_dropdown.js b/app/assets/javascripts/protected_tags/protected_tag_access_dropdown.js deleted file mode 100644 index 4094c300a50..00000000000 --- a/app/assets/javascripts/protected_tags/protected_tag_access_dropdown.js +++ /dev/null @@ -1,29 +0,0 @@ -import initDeprecatedJQueryDropdown from '~/deprecated_jquery_dropdown'; -import { __ } from '~/locale'; - -export default class ProtectedTagAccessDropdown { - constructor(options) { - this.options = options; - this.initDropdown(); - } - - initDropdown() { - const { onSelect } = this.options; - initDeprecatedJQueryDropdown(this.options.$dropdown, { - data: this.options.data, - selectable: true, - inputId: this.options.$dropdown.data('inputId'), - fieldName: this.options.$dropdown.data('fieldName'), - toggleLabel(item, $el) { - if ($el.is('.is-active')) { - return item.text; - } - return __('Select'); - }, - clicked(options) { - options.e.preventDefault(); - onSelect(); - }, - }); - } -} |