Skip to content

Commit 525f4a9

Browse files
committed
Fix DejaCode import #168
* Also, add tooltip to Upload Components button Signed-off-by: Jillian Daguil <[email protected]>
1 parent 9e8d119 commit 525f4a9

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

assets/app/js/componentDataTables.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,7 @@ class ComponentDataTable {
5252
buttons: [{
5353
name: "uploadDeja",
5454
text: '<i class=" fa fa-cloud-upload"></i> Upload Components',
55+
titleAttr: 'Upload Components to DejaCode',
5556
action: () => {
5657
this.aboutCodeDB
5758
.findAllComponents({})

assets/app/js/dejacodeExportDialog.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ class DejaCodeExportDialog {
9797
let requests = [];
9898

9999
// Make individual requests to DejaCode to create each component
100-
$.each(components, function( index, component) {
100+
$.each(components, (index, component) => {
101101
let request = $.Deferred();
102102
requests.push(request);
103103
this._createComponent(host, apiKey, component)

assets/app/js/renderer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ $(document).ready(function () {
6565
const componentsTable = new ComponentDataTable("#components-table", aboutCodeDB)
6666
.on('upload-clicked', components => {
6767
if (components.length > 0) {
68-
dejaCodeExportDialog().show();
68+
dejaCodeExportDialog.show();
6969
} else {
7070
alert("You have no Components to upload.\n\n" +
7171
"Please create at least one Component and try again.");

0 commit comments

Comments
 (0)