mirror of
https://gitlab.silvrtree.co.uk/martind2000/nci.git
synced 2025-03-12 22:30:00 +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());
|
getProject({condition: condition}, this.slot());
|
||||||
},
|
},
|
||||||
function(err, project) {
|
function(err, project) {
|
||||||
resource.clientEmitSync('change', project);
|
resource.clientEmitSync('change', {project: project});
|
||||||
},
|
},
|
||||||
function(err) {
|
function(err) {
|
||||||
console.error(
|
console.error(
|
||||||
|
@ -10,8 +10,8 @@ define([
|
|||||||
listenables: ProjectActions,
|
listenables: ProjectActions,
|
||||||
project: null,
|
project: null,
|
||||||
|
|
||||||
onChange: function(project, action) {
|
onChange: function(data, action) {
|
||||||
this.trigger(project);
|
this.trigger(data.project);
|
||||||
},
|
},
|
||||||
|
|
||||||
init: function() {
|
init: function() {
|
||||||
|
Loading…
Reference in New Issue
Block a user