Skip to content

Commit b28fb1e

Browse files
committed
Fixes preview banner
1 parent a5166a8 commit b28fb1e

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

src/webviews/apps/home/components/preview-banner.ts

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export class GlPreviewBanner extends LitElement {
7474
</button>
7575
<p slot="content">
7676
<strong>Switch to the new Home View!</strong><br />
77-
We're reinventing GitLens' Home to be a more helpful daily workflow tool. We'll continue to
77+
We're reimagining GitLens' Home to be a more helpful daily workflow tool. We'll continue to
7878
refine this view and welcome your feedback.
7979
</p>
8080
</gl-tooltip>
@@ -89,12 +89,12 @@ export class GlPreviewBanner extends LitElement {
8989
<gl-card>
9090
<p><strong>Welcome to the new Home View!</strong></p>
9191
<p>
92-
We're reinventing GitLens' Home to be a more helpful daily workflow tool. We'll continue to refine
92+
We're reimagining GitLens' Home to be a more helpful daily workflow tool. We'll continue to refine
9393
this view and welcome your
9494
<a href="https://github.com/gitkraken/vscode-gitlens/discussions/3721">feedback</a>.
9595
</p>
9696
<button-container>
97-
<gl-button appearance="secondary" @click=${() => this.togglePreview()} full
97+
<gl-button appearance="secondary" @click=${() => this.togglePreview(true)} full
9898
><code-icon icon="arrow-left"></code-icon> Revert to Old Home View</gl-button
9999
>
100100
</button-container>
@@ -105,8 +105,12 @@ export class GlPreviewBanner extends LitElement {
105105
`;
106106
}
107107

108-
private togglePreview() {
108+
private togglePreview(dismiss = false) {
109109
this._ipc.sendCommand(TogglePreviewEnabledCommand);
110+
111+
if (dismiss) {
112+
this.onClose();
113+
}
110114
}
111115

112116
private onClose() {

src/webviews/apps/plus/home/components/active-work.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ export class GlActiveWork extends SignalWatcher(LitElement) {
9696
() =>
9797
html`<span
9898
><gl-button
99-
aria-busy="${isFetching}"
99+
aria-busy="${ifDefined(isFetching)}"
100100
?disabled=${isFetching}
101101
class="section-heading-action"
102102
appearance="toolbar"

0 commit comments

Comments
 (0)