More gallery updates (#418)

* More gallery updates

* Add PublishContent icon

* Address feedback
This commit is contained in:
Tanuj Mittal
2021-02-03 23:24:27 +05:30
committed by GitHub
parent 5038a01079
commit 4f6b75fe79
5 changed files with 24 additions and 5 deletions

View File

@@ -14,6 +14,7 @@ import { handleError, getErrorMessage, getErrorStack } from "../../Common/ErrorH
import { GalleryTab } from "../Controls/NotebookGallery/GalleryViewerComponent";
import { traceFailure, traceStart, traceSuccess } from "../../Shared/Telemetry/TelemetryProcessor";
import { Action } from "../../Shared/Telemetry/TelemetryConstants";
import { FileSystemUtil } from "../Notebook/FileSystemUtil";
export class PublishNotebookPaneAdapter implements ReactAdapter {
parameters: ko.Observable<number>;
@@ -203,7 +204,7 @@ export class PublishNotebookPaneAdapter implements ReactAdapter {
);
const errorMessage = getErrorMessage(error);
this.formError = `Failed to publish ${this.name} to gallery`;
this.formError = `Failed to publish ${FileSystemUtil.stripExtension(this.name, "ipynb")} to gallery`;
this.formErrorDetail = `${errorMessage}`;
handleError(errorMessage, "PublishNotebookPaneAdapter/submit", this.formError);
return;