Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGitLab Bot <gitlab-bot@gitlab.com>2022-12-22 15:07:22 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-22 15:07:22 +0300
commita59aa00d8aeea39a6360d9be12ffee564802c63c (patch)
tree646e082ab91d6db35f1e3e744d1f202e77cbc36e /app/assets/javascripts/issues
parent58e69d174512e267079ebb6afc60dd097070bf35 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issues')
-rw-r--r--app/assets/javascripts/issues/show/components/description.vue22
1 files changed, 10 insertions, 12 deletions
diff --git a/app/assets/javascripts/issues/show/components/description.vue b/app/assets/javascripts/issues/show/components/description.vue
index 78e729b97da..8202dec5f02 100644
--- a/app/assets/javascripts/issues/show/components/description.vue
+++ b/app/assets/javascripts/issues/show/components/description.vue
@@ -1,6 +1,5 @@
<script>
import { GlToast, GlTooltip, GlModalDirective } from '@gitlab/ui';
-import $ from 'jquery';
import Sortable from 'sortablejs';
import Vue from 'vue';
import SafeHtml from '~/vue_shared/directives/safe_html';
@@ -301,20 +300,19 @@ export default {
updateTaskStatusText() {
const taskRegexMatches = this.taskStatus.match(/(\d+) of ((?!0)\d+)/);
- const $issuableHeader = $('.issuable-meta');
- const $tasks = $('#task_status', $issuableHeader);
- const $tasksShort = $('#task_status_short', $issuableHeader);
+ const tasks = document.querySelector('.issuable-meta #task_status');
+ const tasksShort = document.querySelector('.issuable-meta #task_status_short');
+
+ if (!tasks || !tasksShort) return;
if (taskRegexMatches) {
- $tasks.text(this.taskStatus);
- $tasksShort.text(
- `${taskRegexMatches[1]}/${taskRegexMatches[2]} checklist item${
- taskRegexMatches[2] > 1 ? 's' : ''
- }`,
- );
+ tasks.textContent = this.taskStatus;
+ tasksShort.textContent = `${taskRegexMatches[1]}/${taskRegexMatches[2]} checklist item${
+ taskRegexMatches[2] > 1 ? 's' : ''
+ }`;
} else {
- $tasks.text('');
- $tasksShort.text('');
+ tasks.textContent = '';
+ tasksShort.textContent = '';
}
},
renderTaskActions() {