Skip to content

Commit 2e05079

Browse files
chivorotkivsergeibbb
authored andcommitted
Adds "Start Work" shortcut to the "Home" view
(#3621, #3698)
1 parent d981b20 commit 2e05079

File tree

1 file changed

+2
-8
lines changed

1 file changed

+2
-8
lines changed

src/webviews/apps/plus/home/components/launchpad.ts

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ import { SignalWatcher } from '@lit-labs/signals';
33
import type { TemplateResult } from 'lit';
44
import { css, html, LitElement, nothing } from 'lit';
55
import { customElement, state } from 'lit/decorators.js';
6-
import type { BranchGitCommandArgs } from '../../../../../commands/git/branch';
76
import { Commands } from '../../../../../constants.commands';
87
import type { LaunchpadCommandArgs } from '../../../../../plus/launchpad/launchpad';
8+
import type { StartWorkCommandArgs } from '../../../../../plus/startWork/startWork';
99
import { createCommandLink } from '../../../../../system/commands';
1010
import { pluralize } from '../../../../../system/string';
1111
import type { GetLaunchpadSummaryResponse, State } from '../../../../home/protocol';
@@ -108,13 +108,7 @@ export class GlLaunchpad extends SignalWatcher(LitElement) {
108108
});
109109

110110
get startWorkCommand() {
111-
return createCommandLink<BranchGitCommandArgs>(Commands.GitCommandsBranch, {
112-
state: {
113-
subcommand: 'create',
114-
},
115-
command: 'branch',
116-
confirm: true,
117-
});
111+
return createCommandLink<StartWorkCommandArgs>(Commands.StartWork, { command: 'startWork' });
118112
}
119113

120114
override connectedCallback() {

0 commit comments

Comments
 (0)