Load external tasks asynchronously from task view page

This commit is contained in:
Frederic Guillot
2016-11-06 20:08:36 -05:00
parent f758ddfc5e
commit e5c63f4ecc
7 changed files with 69 additions and 3 deletions

View File

@@ -0,0 +1,19 @@
Vue.component('external-task-view', {
props: ['url'],
template: '<div id="external-task-view" v-show="content">{{{ content }}}</div>',
data: function () {
return {
content: ''
};
},
ready: function () {
var self = this;
$.ajax({
cache: false,
url: this.url,
success: function(data) {
self.content = data;
}
});
}
});