Skip to content

Commit

Permalink
#6214 handle show_publication
Browse files Browse the repository at this point in the history
  • Loading branch information
piorek committed Feb 7, 2018
1 parent 2ac7927 commit 59777a8
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
4 changes: 1 addition & 3 deletions js/notebook/src/extension.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ define([
'./plot/plotApi',
'./shared/bkCoreManager',
'big.js',
'./extension/gistPublish/index',
'./tree/Utils/UIOptionsHelper'
], function(
configmod,
Expand All @@ -63,7 +62,6 @@ define([
plotApi,
bkCoreManager,
big,
GistPublish,
UIOptionsHelper
) {
"use strict";
Expand All @@ -77,7 +75,7 @@ define([
var commUtils = require('./extension/comm');
var initCellUtils = require('./extension/initializationCells');

GistPublish.registerFeature();
// GistPublish.registerFeature();
UIOptionsHelper.registerFeature(base_url);

function installKernelHandler() {
Expand Down
7 changes: 6 additions & 1 deletion js/notebook/src/tree/Utils/UIOptionsHelper.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import './../../global.env';

import BeakerXApi from "./BeakerXApi";
import * as GistPublish from "./../../extension/gistPublish/index";


export function registerFeature(baseUrl: string): void {
Expand Down Expand Up @@ -58,9 +59,13 @@ function setupWideCells(wideCells: boolean): void {
}

function setupImproveFonts(improveFonts: boolean) {
// TODO;
console.log('handle improve fonts', improveFonts);
}

function setupShowPublication(showPublication: boolean) {
console.log('handle show publication', showPublication);
if (!showPublication) {
return;
}
GistPublish.registerFeature();
}

0 comments on commit 59777a8

Please sign in to comment.