mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-12 22:39:59 +00:00
send project inside data on project change
This commit is contained in:
parent
ed2e9cea4f
commit
2fe385bdb2
@ -83,7 +83,7 @@ module.exports = function(app) {
|
||||
getProject({condition: condition}, this.slot());
|
||||
},
|
||||
function(err, project) {
|
||||
resource.clientEmitSync('change', project);
|
||||
resource.clientEmitSync('change', {project: project});
|
||||
},
|
||||
function(err) {
|
||||
console.error(
|
||||
|
@ -10,8 +10,8 @@ define([
|
||||
listenables: ProjectActions,
|
||||
project: null,
|
||||
|
||||
onChange: function(project, action) {
|
||||
this.trigger(project);
|
||||
onChange: function(data, action) {
|
||||
this.trigger(data.project);
|
||||
},
|
||||
|
||||
init: function() {
|
||||
|
Loading…
Reference in New Issue
Block a user