Load external tasks asynchronously from task view page
This commit is contained in:
19
assets/js/components/external-task-view.js
Normal file
19
assets/js/components/external-task-view.js
Normal 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;
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user