mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
create an operation based on the correct model
This commit is contained in:
parent
bc6c05afb6
commit
6eabcf134f
1 changed files with 1 additions and 6 deletions
|
|
@ -341,18 +341,13 @@
|
|||
this._initialize('OCA\\WorkflowEngine\\Operation');
|
||||
},
|
||||
_initialize: function(classname) {
|
||||
var data = {};
|
||||
if (this.operationsClass !== null) {
|
||||
data['class'] = this.operationsClass;
|
||||
}
|
||||
this.collection.fetch({data: {
|
||||
'class': classname
|
||||
}});
|
||||
this.collection.once('sync', this.render, this);
|
||||
},
|
||||
add: function() {
|
||||
var operation = new OCA.WorkflowEngine.Operation();
|
||||
this.collection.add(operation);
|
||||
var operation = this.collection.create();
|
||||
this.renderOperation(operation);
|
||||
},
|
||||
renderOperation: function(operation){
|
||||
|
|
|
|||
Loading…
Reference in a new issue