Show Flash message above Tags list

This commit is contained in:
Kushal Pandya 2017-04-07 18:18:58 +05:30
parent 72419f3a8b
commit 6f15e89a6b
3 changed files with 8 additions and 2 deletions

View File

@ -43,7 +43,7 @@ export default class ProtectedTagEdit {
},
},
error() {
new Flash('Failed to update tag!');
new Flash('Failed to update tag!', null, $('.js-protected-tags-list'));
},
}).always(() => {
this.$allowedToCreateDropdownButton.enable();

View File

@ -782,6 +782,10 @@ pre.light-well {
width: 100%;
max-width: 300px;
}
.flash-container {
padding: 0;
}
}
.custom-notifications-form {

View File

@ -1,4 +1,4 @@
.panel.panel-default.protected-tags-list
.panel.panel-default.protected-tags-list.js-protected-tags-list
- if @protected_tags.empty?
.panel-heading
%h3.panel-title
@ -21,6 +21,8 @@
- if can_admin_project
%th
%tbody
%tr
%td.flash-container{ colspan: 4 }
= render partial: 'projects/protected_tags/protected_tag', collection: @protected_tags, locals: { can_admin_project: can_admin_project}
= paginate @protected_tags, theme: 'gitlab'