Load buttons only if a token is set

pull/706/head
Piero Toffanin 2019-07-21 14:11:56 -04:00 zatwierdzone przez GitHub
rodzic 13297d2f3e
commit ee2eb1a4df
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 4 dodań i 2 usunięć

Wyświetl plik

@ -1,11 +1,13 @@
PluginsAPI.Dashboard.addTaskActionButton(
["{{ app_name }}/build/TaskView.js"],
function(args, TaskView) {
return React.createElement(TaskView, {
if ("{{ token }}"){
return React.createElement(TaskView, {
task: args.task,
token: "{{ token }}",
apiURL: "{{ api_url }}",
ionURL: "{{ ion_url }}"
});
});
}
}
);