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 21:07:08 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-12-22 21:07:08 +0300
commitb486760a6332905cd2ac94b3fade5cbc6a55d21e (patch)
tree0f1206f20aa3f1d49ddfee1418538c1777ef0957 /app/assets/javascripts/issues
parentaaf158bcb57386a043d8cb7dc491a2f306a4ac13 (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, 12 insertions, 10 deletions
diff --git a/app/assets/javascripts/issues/show/components/description.vue b/app/assets/javascripts/issues/show/components/description.vue
index 8202dec5f02..78e729b97da 100644
--- a/app/assets/javascripts/issues/show/components/description.vue
+++ b/app/assets/javascripts/issues/show/components/description.vue
@@ -1,5 +1,6 @@
<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';
@@ -300,19 +301,20 @@ export default {
updateTaskStatusText() {
const taskRegexMatches = this.taskStatus.match(/(\d+) of ((?!0)\d+)/);
- const tasks = document.querySelector('.issuable-meta #task_status');
- const tasksShort = document.querySelector('.issuable-meta #task_status_short');
-
- if (!tasks || !tasksShort) return;
+ const $issuableHeader = $('.issuable-meta');
+ const $tasks = $('#task_status', $issuableHeader);
+ const $tasksShort = $('#task_status_short', $issuableHeader);
if (taskRegexMatches) {
- tasks.textContent = this.taskStatus;
- tasksShort.textContent = `${taskRegexMatches[1]}/${taskRegexMatches[2]} checklist item${
- taskRegexMatches[2] > 1 ? 's' : ''
- }`;
+ $tasks.text(this.taskStatus);
+ $tasksShort.text(
+ `${taskRegexMatches[1]}/${taskRegexMatches[2]} checklist item${
+ taskRegexMatches[2] > 1 ? 's' : ''
+ }`,
+ );
} else {
- tasks.textContent = '';
- tasksShort.textContent = '';
+ $tasks.text('');
+ $tasksShort.text('');
}
},
renderTaskActions() {