removed enableGalleryPublish, enableLinkInjection feature flags (#454)

* removed enableGalleryPublish, enableLinkInjection

* removed ENABLE_GALLERY_PUBLISH
This commit is contained in:
Srinath Narayanan
2021-02-26 13:07:44 -08:00
committed by GitHub
parent 3cc1945140
commit cf01ffa957
20 changed files with 163 additions and 130 deletions

View File

@@ -32,7 +32,6 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
private notebookObject: ImmutableNotebook;
private parentDomElement: HTMLElement;
private isCodeOfConductAccepted: boolean;
private isLinkInjectionEnabled: boolean;
constructor(private container: Explorer, private junoClient: JunoClient) {
this.parameters = ko.observable(Date.now());
@@ -101,8 +100,7 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
name: string,
author: string,
notebookContent: string | ImmutableNotebook,
parentDomElement: HTMLElement,
isLinkInjectionEnabled: boolean
parentDomElement: HTMLElement
): Promise<void> {
try {
const response = await this.junoClient.isCodeOfConductAccepted();
@@ -130,7 +128,6 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
this.parentDomElement = parentDomElement;
this.isOpened = true;
this.isLinkInjectionEnabled = isLinkInjectionEnabled;
this.triggerRender();
}
@@ -166,8 +163,7 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
this.tags?.split(","),
this.author,
this.imageSrc,
this.content,
this.isLinkInjectionEnabled
this.content
);
const data = response.data;
@@ -248,6 +244,5 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
this.notebookObject = undefined;
this.parentDomElement = undefined;
this.isCodeOfConductAccepted = undefined;
this.isLinkInjectionEnabled = undefined;
};
}