Skip to content

Commit

Permalink
fix: reverted unneeded changes
Browse files Browse the repository at this point in the history
Signed-off-by: Akos Kitta <[email protected]>
  • Loading branch information
Akos Kitta committed Feb 21, 2023
1 parent e43bcba commit e7f1699
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ export class CloudSketchbookCompositeWidget extends BaseSketchbookCompositeWidge
private readonly cloudSketchbookTreeWidget: CloudSketchbookTreeWidget;
@inject(ApplicationConnectionStatusContribution)
private readonly connectionStatus: ApplicationConnectionStatusContribution;

private _session: AuthenticationSession | undefined;

constructor() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -81,10 +81,7 @@ export class CloudSketchbookTreeWidget extends SketchbookTreeWidget {
return CompositeTreeNode.is(node) && node.children.length === 0;
}

protected override createNodeClassNames(
node: any,
props: NodeProps
): string[] {
protected override createNodeClassNames(node: any, props: NodeProps): string[] {
const classNames = super.createNodeClassNames(node, props);

if (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -512,7 +512,7 @@ export class CloudSketchbookTree extends SketchbookTree {
};
}

protected readonly unpulledOfflineDecoration: WidgetDecoration.Data = {
protected readonly notInSyncOfflineDecoration: WidgetDecoration.Data = {
fontData: {
color: 'var(--theia-activityBar-inactiveForeground)',
},
Expand Down Expand Up @@ -578,9 +578,9 @@ export class CloudSketchbookTree extends SketchbookTree {
!CloudSketchbookTree.CloudSketchTreeNode.isSynced(node) &&
this.connectionStatus.offlineStatus === 'internet'
) {
this.mergeDecoration(node, this.unpulledOfflineDecoration);
this.mergeDecoration(node, this.notInSyncOfflineDecoration);
} else {
this.removeDecoration(node, this.unpulledOfflineDecoration);
this.removeDecoration(node, this.notInSyncOfflineDecoration);
}

return node;
Expand Down

0 comments on commit e7f1699

Please sign in to comment.