Backwards compatibility for views for now

This commit is contained in:
Robin Ward 2016-11-24 11:22:39 -05:00
parent 8560859817
commit 4203097376
1 changed files with 5 additions and 1 deletions

View File

@ -16,7 +16,11 @@ export default {
function showStaffNotes(userId, callback) {
return loadScript('defer/html-sanitizer-bundle').then(() => {
return store.find('staff-note', { user_id: userId }).then(model => {
const controller = showModal('staff-notes', { model, title: 'staff_notes.title' });
const controller = showModal('staff-notes', {
model,
title: 'staff_notes.title',
addModalBodyView: true
});
controller.reset();
controller.set('userId', userId);
controller.set('callback', callback);