|
|
@@ -560,7 +560,10 @@ class EditorViewModel {
|
|
|
if (typeof skipUrlChange === 'undefined' && !self.isNotificationManager()) {
|
|
|
if (self.editorMode()) {
|
|
|
self.editorType(data.document.type.substring('query-'.length));
|
|
|
- huePubSub.publish('active.snippet.type.changed', { type: self.editorType(), isSqlDialect: self.getSnippetViewSettings(self.editorType()).sqlDialect });
|
|
|
+ huePubSub.publish('active.snippet.type.changed', {
|
|
|
+ type: self.editorType(),
|
|
|
+ isSqlDialect: self.getSnippetViewSettings(self.editorType()).sqlDialect
|
|
|
+ });
|
|
|
self.changeURL(
|
|
|
self.URLS.editor + '?editor=' + data.document.id + '&type=' + self.editorType()
|
|
|
);
|
|
|
@@ -583,7 +586,10 @@ class EditorViewModel {
|
|
|
};
|
|
|
|
|
|
self.newNotebook = function(editorType, callback, queryTab) {
|
|
|
- huePubSub.publish('active.snippet.type.changed', { type: editorType, isSqlDialect: editorType ? self.getSnippetViewSettings(editorType).sqlDialect : undefined });
|
|
|
+ huePubSub.publish('active.snippet.type.changed', {
|
|
|
+ type: editorType,
|
|
|
+ isSqlDialect: editorType ? self.getSnippetViewSettings(editorType).sqlDialect : undefined
|
|
|
+ });
|
|
|
$.post(
|
|
|
'/notebook/api/create_notebook',
|
|
|
{
|
|
|
@@ -604,7 +610,12 @@ class EditorViewModel {
|
|
|
if (window.location.getParameter('type') === '') {
|
|
|
hueUtils.changeURLParameter('type', self.editorType());
|
|
|
}
|
|
|
- huePubSub.publish('active.snippet.type.changed', { type: editorType, isSqlDialect: editorType ? self.getSnippetViewSettings(editorType).sqlDialect : undefined });
|
|
|
+ huePubSub.publish('active.snippet.type.changed', {
|
|
|
+ type: editorType,
|
|
|
+ isSqlDialect: editorType
|
|
|
+ ? self.getSnippetViewSettings(editorType).sqlDialect
|
|
|
+ : undefined
|
|
|
+ });
|
|
|
}
|
|
|
|
|
|
if (typeof callback !== 'undefined' && callback !== null) {
|