summaryrefslogtreecommitdiff
path: root/app/views/projects/tags/destroy.js.haml
diff options
context:
space:
mode:
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)