|
|
@@ -137,7 +137,7 @@ export default class Notebook {
|
|
|
ASSIST_DB_PANEL_IS_READY_EVENT,
|
|
|
() => {
|
|
|
if (this.type().indexOf('query') === 0) {
|
|
|
- const whenDatabaseAvailable = function(snippet) {
|
|
|
+ const whenDatabaseAvailable = snippet => {
|
|
|
huePubSub.publish(ASSIST_SET_DATABASE_EVENT, {
|
|
|
connector: snippet.connector(),
|
|
|
namespace: snippet.namespace(),
|
|
|
@@ -145,7 +145,7 @@ export default class Notebook {
|
|
|
});
|
|
|
};
|
|
|
|
|
|
- const whenNamespaceAvailable = function(snippet) {
|
|
|
+ const whenNamespaceAvailable = snippet => {
|
|
|
if (snippet.database()) {
|
|
|
whenDatabaseAvailable(snippet);
|
|
|
} else {
|
|
|
@@ -156,7 +156,7 @@ export default class Notebook {
|
|
|
}
|
|
|
};
|
|
|
|
|
|
- const whenSnippetAvailable = function(snippet) {
|
|
|
+ const whenSnippetAvailable = snippet => {
|
|
|
if (snippet.namespace()) {
|
|
|
whenNamespaceAvailable(snippet);
|
|
|
} else {
|
|
|
@@ -232,7 +232,7 @@ export default class Notebook {
|
|
|
}
|
|
|
hueAnalytics.log('notebook', 'schedule/' + action);
|
|
|
|
|
|
- const getCoordinator = function() {
|
|
|
+ const getCoordinator = () => {
|
|
|
$.get(
|
|
|
'/scheduler/api/schedule/' + action + '/',
|
|
|
{
|
|
|
@@ -244,7 +244,7 @@ export default class Notebook {
|
|
|
if ($('#schedulerEditor').length > 0) {
|
|
|
huePubSub.publish('hue4.process.headers', {
|
|
|
response: data.layout,
|
|
|
- callback: function(r) {
|
|
|
+ callback: r => {
|
|
|
const $schedulerEditor = $('#schedulerEditor');
|
|
|
$schedulerEditor.html(r);
|
|
|
|