summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/destroy.js.haml
diff options
context:
space:
mode:
authorAdam Niedzielski <adamsunday@gmail.com>2017-03-13 18:12:32 +0100
committerAdam Niedzielski <adamsunday@gmail.com>2017-03-13 18:12:32 +0100
commit34bf5d863ec1655e3681997c549d159fea6983a9 (patch)
treee751c69843b79acc74522d07cd2aac440c252d45 /app/views/projects/tags/destroy.js.haml
parent32da7602686f2b8161175d82b121deb9e01b2db5 (diff)
downloadgitlab-ce-34bf5d863ec1655e3681997c549d159fea6983a9.tar.gz
Display error message when deleting tag in web UI failshandle-failure-when-deleting-tags
Diffstat (limited to 'app/views/projects/tags/destroy.js.haml')
-rw-r--r--app/views/projects/tags/destroy.js.haml4
1 files changed, 3 insertions, 1 deletions
diff --git a/app/views/projects/tags/destroy.js.haml b/app/views/projects/tags/destroy.js.haml
index e4a78fadbeb..cde23e03d54 100644
--- a/app/views/projects/tags/destroy.js.haml
+++ b/app/views/projects/tags/destroy.js.haml
@@ -1,2 +1,4 @@
-- if @repository.tags.empty?
+- if @error.present?
+ new Flash('#{escape_javascript(@error)}', 'alert');
+- elsif @repository.tags.empty?
$('.tags').load(document.URL + ' .nothing-here-block').hide().fadeIn(1000)