2022-01-04 17:13:15 +00:00
|
|
|
PluginsAPI.Dashboard.addNewTaskButton(
|
2022-01-07 18:02:01 +00:00
|
|
|
["dronedb/build/ImportView.js"],
|
2022-01-04 17:13:15 +00:00
|
|
|
function(args, ImportView) {
|
|
|
|
return React.createElement(ImportView, {
|
|
|
|
onNewTaskAdded: args.onNewTaskAdded,
|
|
|
|
projectId: args.projectId,
|
|
|
|
apiURL: "{{ api_url }}",
|
|
|
|
});
|
|
|
|
}
|
|
|
|
);
|
|
|
|
|
2022-01-19 12:16:33 +00:00
|
|
|
PluginsAPI.Dashboard.addTaskActionButton(['dronedb/build/ShareButton.js'],function(args, ShareButton){
|
|
|
|
var task = args.task;
|
|
|
|
|
|
|
|
if (task.available_assets !== null && task.available_assets.length > 0){
|
|
|
|
return React.createElement(ShareButton, {task: task, token: "${token}"});
|
|
|
|
}
|
|
|
|
}
|
|
|
|
);
|