mirror of
https://github.com/Azure/cosmos-explorer.git
synced 2025-02-08 09:15:12 +00:00
Fix build issues and reformat
This commit is contained in:
parent
21b92ed4f8
commit
7e992c2b17
@ -351,8 +351,8 @@ export default class Explorer {
|
|||||||
async () => {
|
async () => {
|
||||||
this.isNotebookEnabled(
|
this.isNotebookEnabled(
|
||||||
!this.isAuthWithResourceToken() &&
|
!this.isAuthWithResourceToken() &&
|
||||||
((await this._containsDefaultNotebookWorkspace(this.databaseAccount())) ||
|
((await this._containsDefaultNotebookWorkspace(this.databaseAccount())) ||
|
||||||
this.isFeatureEnabled(Constants.Features.enableNotebooks))
|
this.isFeatureEnabled(Constants.Features.enableNotebooks))
|
||||||
);
|
);
|
||||||
|
|
||||||
TelemetryProcessor.trace(Action.NotebookEnabled, ActionModifiers.Mark, {
|
TelemetryProcessor.trace(Action.NotebookEnabled, ActionModifiers.Mark, {
|
||||||
@ -374,7 +374,7 @@ export default class Explorer {
|
|||||||
this.isSparkEnabledForAccount() &&
|
this.isSparkEnabledForAccount() &&
|
||||||
this.arcadiaWorkspaces() &&
|
this.arcadiaWorkspaces() &&
|
||||||
this.arcadiaWorkspaces().length > 0) ||
|
this.arcadiaWorkspaces().length > 0) ||
|
||||||
this.isFeatureEnabled(Constants.Features.enableSpark)
|
this.isFeatureEnabled(Constants.Features.enableSpark)
|
||||||
);
|
);
|
||||||
if (this.isSparkEnabled()) {
|
if (this.isSparkEnabled()) {
|
||||||
appInsights.trackEvent(
|
appInsights.trackEvent(
|
||||||
@ -2541,12 +2541,12 @@ export default class Explorer {
|
|||||||
this.isFeatureEnabled(Constants.Features.enableKOPanel)
|
this.isFeatureEnabled(Constants.Features.enableKOPanel)
|
||||||
? this.deleteCollectionConfirmationPane.open()
|
? this.deleteCollectionConfirmationPane.open()
|
||||||
: this.openSidePanel(
|
: this.openSidePanel(
|
||||||
"Delete Collection",
|
"Delete Collection",
|
||||||
<DeleteCollectionConfirmationPanel
|
<DeleteCollectionConfirmationPanel
|
||||||
explorer={this}
|
explorer={this}
|
||||||
closePanel={() => this.closeSidePanel()}
|
closePanel={() => this.closeSidePanel()}
|
||||||
openNotificationConsole={() => this.expandConsole()}
|
openNotificationConsole={() => this.expandConsole()}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -34,7 +34,7 @@ export const useNotebooks = (context: { container: Explorer }): NotebookHooks =>
|
|||||||
};
|
};
|
||||||
|
|
||||||
// TODO For now, we need to rely on this, as setMyNotebooksContentRoot() is not synchronous
|
// TODO For now, we need to rely on this, as setMyNotebooksContentRoot() is not synchronous
|
||||||
let _myNotebooksContentRoot: NotebookContentItem = undefined;
|
let _myNotebooksContentRoot: NotebookContentItem;
|
||||||
const _setMyNotebooksContentRoot = (newValue: NotebookContentItem) => {
|
const _setMyNotebooksContentRoot = (newValue: NotebookContentItem) => {
|
||||||
_myNotebooksContentRoot = newValue;
|
_myNotebooksContentRoot = newValue;
|
||||||
setMyNotebooksContentRoot(newValue);
|
setMyNotebooksContentRoot(newValue);
|
||||||
@ -94,7 +94,7 @@ export const useNotebooks = (context: { container: Explorer }): NotebookHooks =>
|
|||||||
};
|
};
|
||||||
|
|
||||||
const initializeGitHubNotebooksContentRoot = (): NotebookContentItem => {
|
const initializeGitHubNotebooksContentRoot = (): NotebookContentItem => {
|
||||||
let root: NotebookContentItem = undefined;
|
let root: NotebookContentItem;
|
||||||
|
|
||||||
if (context.container.notebookManager?.gitHubOAuthService.isLoggedIn()) {
|
if (context.container.notebookManager?.gitHubOAuthService.isLoggedIn()) {
|
||||||
root = {
|
root = {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user