From 45064348619ce7585d15756950eae5f5346ee631 Mon Sep 17 00:00:00 2001 From: Heinrich Lee Yu Date: Mon, 5 Aug 2019 16:56:03 +0800 Subject: [PATCH] Fix conflict warning being incorrectly displayed Hide warning when update request is in progress --- .../issue_show/components/form.vue | 5 +- ...y-seen-despite-that-being-a-filthy-lie.yml | 5 + .../issue_show/components/form_spec.js | 129 ++++++++++-------- 3 files changed, 82 insertions(+), 57 deletions(-) create mode 100644 changelogs/unreleased/44036-someone-edited-the-issue-at-the-same-time-is-regularly-seen-despite-that-being-a-filthy-lie.yml diff --git a/app/assets/javascripts/issue_show/components/form.vue b/app/assets/javascripts/issue_show/components/form.vue index 528ccb77efc..d48bf1fe7a9 100644 --- a/app/assets/javascripts/issue_show/components/form.vue +++ b/app/assets/javascripts/issue_show/components/form.vue @@ -70,6 +70,9 @@ export default { hasIssuableTemplates() { return this.issuableTemplates.length; }, + showLockedWarning() { + return this.formState.lockedWarningVisible && !this.formState.updateLoading; + }, }, created() { eventHub.$on('delete.issuable', this.resetAutosave); @@ -117,7 +120,7 @@ export default {