Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
inspectCreateNode : function(attr) {
attr.id = attr['catalog.id'];
attr.label = attr['catalog.label'];
attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
attr.code = attr['catalog.code'];
attr.status = attr['catalog.status'];
attr.cls = 'statustext-' + attr.status;
// create record and insert into own store
this.store.suspendEvents(false);
this.store.remove(this.store.getById(attr.id));
this.store.add([new this.recordClass(attr, attr.id)]);
this.store.resumeEvents();
}
});
inspectCreateNode : function(attr) {
attr.id = attr['catalog.id'];
attr.label = attr['catalog.label'];
attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
attr.code = attr['catalog.code'];
attr.status = attr['catalog.status'];
attr.cls = 'statustext-' + attr.status;
// create record and insert into own store
this.store.suspendEvents(false);
this.store.remove(this.store.getById(attr.id));
this.store.add([new this.recordClass(attr, attr.id)]);
this.store.resumeEvents();
}
});
inspectCreateNode : function(attr) {
attr.id = attr['catalog.id'];
attr.label = attr['catalog.label'];
attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
attr.code = attr['catalog.code'];
attr.status = attr['catalog.status'];
attr.cls = 'statustext-' + attr.status;
// create record and insert into own store
this.store.suspendEvents(false);
this.store.remove(this.store.getById(attr.id));
this.store.add([new this.recordClass(attr, attr.id)]);
this.store.resumeEvents();
}
});
inspectCreateNode : function(attr) {
attr.id = attr['catalog.id'];
attr.label = attr['catalog.label'];
attr.text = attr['catalog.id'] + " - " + attr['catalog.label'];
attr.code = attr['catalog.code'];
attr.status = attr['catalog.status'];
attr.cls = 'statustext-' + attr.status;
// create record and insert into own store
this.store.suspendEvents(false);
this.store.remove(this.store.getById(attr.id));
this.store.add([new this.recordClass(attr, attr.id)]);
this.store.resumeEvents();
}
});
var ids = [];
for(idx in this.items) {
if(this.items[idx]['catalog.lists.type'] != this.listtype) {
continue;
}
this.items[idx]['css'] = '';
if(ids.indexOf(this.items[idx]['catalog.id']) !== -1) {
this.items[idx]['css'] = 'is-invalid';
}
ids.push(this.items[idx]['catalog.id']);
}
}
}
this.$set(this.items[ev.index], 'catalog.lists.refid', '');
this.$set(this.items[ev.index], 'catalog.label', ev.label);
this.$set(this.items[ev.index], 'catalog.id', ev.value);
this.$set(this.items[ev.index], 'catalog.code', '');
var ids = [];
for(idx in this.items) {
if(this.items[idx]['catalog.lists.type'] != this.listtype) {
continue;
}
this.items[idx]['css'] = '';
if(ids.indexOf(this.items[idx]['catalog.id']) !== -1) {
this.items[idx]['css'] = 'is-invalid';
}
ids.push(this.items[idx]['catalog.id']);
}
}
}