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>2020-12-11 21:09:57 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-12-11 21:09:57 +0300
commit3172281335efddd1078fa6c601f3ba8782f73192 (patch)
treef26352ede418cecb20b3f08b6bd04c0d7830e231 /app/assets/javascripts/issue_show
parenta8704bd33cb36b4e7e88bb10d61265b8ad8a058c (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/issue_show')
-rw-r--r--app/assets/javascripts/issue_show/components/header_actions.vue21
1 files changed, 9 insertions, 12 deletions
diff --git a/app/assets/javascripts/issue_show/components/header_actions.vue b/app/assets/javascripts/issue_show/components/header_actions.vue
index 1488a94fff4..998f740be0e 100644
--- a/app/assets/javascripts/issue_show/components/header_actions.vue
+++ b/app/assets/javascripts/issue_show/components/header_actions.vue
@@ -150,7 +150,7 @@ export default {
// Dispatch event which updates open/close state, shared among the issue show page
document.dispatchEvent(new CustomEvent('issuable_vue_app:change', payload));
})
- .catch(() => createFlash({ message: __('Update failed. Please try again.') }))
+ .catch(() => createFlash({ message: __('Error occurred while updating the issue status') }))
.finally(() => {
this.toggleStateButtonLoading(false);
});
@@ -192,22 +192,19 @@ export default {
<template>
<div class="detail-page-header-actions">
- <gl-dropdown class="gl-display-block gl-display-sm-none!" block :text="dropdownText">
- <gl-dropdown-item
- v-if="showToggleIssueStateButton"
- :disabled="isToggleStateButtonLoading"
- @click="toggleIssueState"
- >
+ <gl-dropdown
+ class="gl-display-block gl-display-sm-none!"
+ block
+ :text="dropdownText"
+ :loading="isToggleStateButtonLoading"
+ >
+ <gl-dropdown-item v-if="showToggleIssueStateButton" @click="toggleIssueState">
{{ buttonText }}
</gl-dropdown-item>
<gl-dropdown-item v-if="canCreateIssue" :href="newIssuePath">
{{ newIssueTypeText }}
</gl-dropdown-item>
- <gl-dropdown-item
- v-if="canPromoteToEpic"
- :disabled="isToggleStateButtonLoading"
- @click="promoteToEpic"
- >
+ <gl-dropdown-item v-if="canPromoteToEpic" @click="promoteToEpic">
{{ __('Promote to epic') }}
</gl-dropdown-item>
<gl-dropdown-item v-if="!isIssueAuthor" :href="reportAbusePath">