split service changes
This commit is contained in:
parent
78e5c88e3c
commit
8c7f4d1ddf
|
@ -482,7 +482,7 @@ export default class Explorer {
|
||||||
var notebookServerInfo = await response.json();
|
var notebookServerInfo = await response.json();
|
||||||
|
|
||||||
this.notebookServerInfo({
|
this.notebookServerInfo({
|
||||||
notebookServerEndpoint: userContext.features.notebookServerUrl || `http://localhost:443/api/containerpooling/${notebookServerInfo.forwardingId}/forward/`,
|
notebookServerEndpoint: userContext.features.notebookServerUrl || notebookServerInfo.notebookServerUrl,
|
||||||
authToken: userContext.features.notebookServerToken || notebookServerInfo.notebookServerToken,
|
authToken: userContext.features.notebookServerToken || notebookServerInfo.notebookServerToken,
|
||||||
});
|
});
|
||||||
this.notebookServerInfo.valueHasMutated();
|
this.notebookServerInfo.valueHasMutated();
|
||||||
|
|
|
@ -12,7 +12,7 @@ export class NotebookContentClient {
|
||||||
private notebookServerInfo: ko.Observable<DataModels.NotebookWorkspaceConnectionInfo>,
|
private notebookServerInfo: ko.Observable<DataModels.NotebookWorkspaceConnectionInfo>,
|
||||||
public notebookBasePath: ko.Observable<string>,
|
public notebookBasePath: ko.Observable<string>,
|
||||||
private contentProvider: IContentProvider
|
private contentProvider: IContentProvider
|
||||||
) {}
|
) { }
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* This updates the item and points all the children's parent to this item
|
* This updates the item and points all the children's parent to this item
|
||||||
|
@ -38,14 +38,6 @@ export class NotebookContentClient {
|
||||||
}
|
}
|
||||||
|
|
||||||
const type = "notebook";
|
const type = "notebook";
|
||||||
const item = NotebookUtil.createNotebookContentItem("Sample.ipynb", "notebooks/Sample.ipynb", "notebook");
|
|
||||||
if (parent.children) {
|
|
||||||
item.parent = parent;
|
|
||||||
parent.children.push(item);
|
|
||||||
}
|
|
||||||
return this.sleep(1000).then(() => item);
|
|
||||||
|
|
||||||
/*
|
|
||||||
|
|
||||||
return this.contentProvider
|
return this.contentProvider
|
||||||
.create<"notebook">(this.getServerConfig(), parent.path, { type })
|
.create<"notebook">(this.getServerConfig(), parent.path, { type })
|
||||||
|
@ -69,7 +61,6 @@ export class NotebookContentClient {
|
||||||
|
|
||||||
return item;
|
return item;
|
||||||
});
|
});
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public deleteContentItem(item: NotebookContentItem): Promise<void> {
|
public deleteContentItem(item: NotebookContentItem): Promise<void> {
|
||||||
|
|
Loading…
Reference in New Issue