Skip to content

Commit

Permalink
Client format
Browse files Browse the repository at this point in the history
  • Loading branch information
dannon committed Jun 27, 2018
1 parent b4814bb commit ae81a14
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 15 deletions.
7 changes: 5 additions & 2 deletions client/galaxy/scripts/components/DataDialog.vue
Expand Up @@ -92,7 +92,9 @@ export default {
optionsShow: false
};
},
created: function() {this.load()},
created: function() {
this.load();
},
methods: {
filtered: function(items) {
this.nItems = items.length;
Expand All @@ -113,7 +115,8 @@ export default {
})
.catch(e => {
if (e.response) {
this.errorMessage = e.response.data.err_msg || `${e.response.statusText} (${e.response.status})`;
this.errorMessage =
e.response.data.err_msg || `${e.response.statusText} (${e.response.status})`;
} else {
this.errorMessage = "Server unavailable.";
}
Expand Down
19 changes: 9 additions & 10 deletions client/galaxy/scripts/components/admin/DataTypes.vue
Expand Up @@ -67,16 +67,15 @@ export default {
}
// Create column headers from each remaining key and merge
// with predefined column headers
columns =
keys.reduce(function(m, k)
{
var text = k[0].toUpperCase();
text += k.slice(1).replace(/_/g," ");
m.push({"text": text,
"dataIndex": k});
return m;
},
columns);
columns = keys.reduce(function(m, k) {
var text = k[0].toUpperCase();
text += k.slice(1).replace(/_/g, " ");
m.push({
text: text,
dataIndex: k
});
return m;
}, columns);
}
}
return columns;
Expand Down
6 changes: 3 additions & 3 deletions client/galaxy/scripts/layout/data.js
Expand Up @@ -9,11 +9,11 @@ export default class Data {
dialog(callback) {
var instance = Vue.extend(DataDialog);
var vm = document.createElement("div");
$('body').append(vm);
new instance(({
$("body").append(vm);
new instance({
propsData: {
callback: callback
}
})).$mount(vm);
}).$mount(vm);
}
}

0 comments on commit ae81a14

Please sign in to comment.