diff --git a/lib/assets/javascripts/views/org_admin/phases/show.js b/lib/assets/javascripts/views/org_admin/phases/show.js index 69b4ea2..9042f6c 100644 --- a/lib/assets/javascripts/views/org_admin/phases/show.js +++ b/lib/assets/javascripts/views/org_admin/phases/show.js @@ -1,7 +1,7 @@ import 'jquery-ui/ui/widgets/sortable'; +import { renderAlert } from '../../../utils/notificationHelper'; $(() => { - console.log('TEST'); // Is there already one prefix section on this Phase? // // draggableSections - A jQuery object, the sortable element. @@ -23,6 +23,10 @@ if (prefixSectionExists($(this))) { // Prevent the sort action from completing. Moves element back to source $(this).sortable('cancel'); + + renderAlert('You may only prepend one section', { + floating: true, autoDismiss: true, + }); } }, update() {