Commit 6f15e89a authored by Kushal Pandya's avatar Kushal Pandya

Show Flash message above Tags list

parent 72419f3a
...@@ -43,7 +43,7 @@ export default class ProtectedTagEdit { ...@@ -43,7 +43,7 @@ export default class ProtectedTagEdit {
}, },
}, },
error() { error() {
new Flash('Failed to update tag!'); new Flash('Failed to update tag!', null, $('.js-protected-tags-list'));
}, },
}).always(() => { }).always(() => {
this.$allowedToCreateDropdownButton.enable(); this.$allowedToCreateDropdownButton.enable();
......
...@@ -782,6 +782,10 @@ pre.light-well { ...@@ -782,6 +782,10 @@ pre.light-well {
width: 100%; width: 100%;
max-width: 300px; max-width: 300px;
} }
.flash-container {
padding: 0;
}
} }
.custom-notifications-form { .custom-notifications-form {
......
.panel.panel-default.protected-tags-list .panel.panel-default.protected-tags-list.js-protected-tags-list
- if @protected_tags.empty? - if @protected_tags.empty?
.panel-heading .panel-heading
%h3.panel-title %h3.panel-title
...@@ -21,6 +21,8 @@ ...@@ -21,6 +21,8 @@
- if can_admin_project - if can_admin_project
%th %th
%tbody %tbody
%tr
%td.flash-container{ colspan: 4 }
= render partial: 'projects/protected_tags/protected_tag', collection: @protected_tags, locals: { can_admin_project: can_admin_project} = render partial: 'projects/protected_tags/protected_tag', collection: @protected_tags, locals: { can_admin_project: can_admin_project}
= paginate @protected_tags, theme: 'gitlab' = paginate @protected_tags, theme: 'gitlab'
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment