Added publicgallery flight (#1262)

* added publicgallery flag

* fixed PR comments
This commit is contained in:
Srinath Narayanan
2022-05-04 03:50:44 +05:30
committed by GitHub
parent 27423e2321
commit da1169d0e2
7 changed files with 32 additions and 107 deletions

View File

@@ -299,7 +299,7 @@ export const ResourceTree: React.FC<ResourceTreeProps> = ({ container }: Resourc
},
];
if (item.type === NotebookContentItemType.Notebook) {
if (item.type === NotebookContentItemType.Notebook && userContext.features.publicGallery) {
items.push({
label: "Publish to gallery",
iconSrc: PublishIcon,