Repository navigation
extract the form state out of the branches view - #847
Conversation
f9738b7 to
a1de696
Compare
|
assigning @niik since he has the most context here |
| return this.appStore._clearContextualCommitMessage(repository) | ||
| } | ||
|
|
||
| /** Create a new branch from the given starting point and check it out. */ |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| /** Create a new branch from the given starting point and check it out. */ | ||
| public setBranchesPopoverState(repository: Repository, showCreateForm: boolean) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| return Promise.resolve() | ||
| } | ||
|
|
||
| public _setBranchesPopoverState(repository: Repository, showCreateBranchForm: boolean) { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🍭 |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
🌔 |
|
So I feel bad about continuing to beat this 🐴, but... This PR and #863 handle the "how do we indicate expansion" differently. I think your initial instinct of /** app-state.ts */
{ type: FoldoutType.Branch, expandCreateForm?: boolean }was pretty spot-on. You just needed to stop storing it in the component's state too. So that's the route I've taken in #863. Are we ok with standardizing on that approach? |
|
I think that's everything. Let's see if there's anything else left to review. EDIT: actually, let me look over #863 and ensure I'm consistent with that. |
|
🌔 |
Fixes #846