mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-12-21 09:51:11 +00:00
removed enableGalleryPublish, enableLinkInjection feature flags (#454)
* removed enableGalleryPublish, enableLinkInjection * removed ENABLE_GALLERY_PUBLISH
This commit is contained in:
committed by
GitHub
parent
3cc1945140
commit
cf01ffa957
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user