Backwards compatibility for views for now
This commit is contained in:
parent
8560859817
commit
4203097376
|
@ -16,7 +16,11 @@ export default {
|
||||||
function showStaffNotes(userId, callback) {
|
function showStaffNotes(userId, callback) {
|
||||||
return loadScript('defer/html-sanitizer-bundle').then(() => {
|
return loadScript('defer/html-sanitizer-bundle').then(() => {
|
||||||
return store.find('staff-note', { user_id: userId }).then(model => {
|
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.reset();
|
||||||
controller.set('userId', userId);
|
controller.set('userId', userId);
|
||||||
controller.set('callback', callback);
|
controller.set('callback', callback);
|
||||||
|
|
Loading…
Reference in New Issue