Skip to content

Only update viewlet switcher if it has already been rendered - #28568

Merged
Benjamin Pasero (bpasero) merged 2 commits into
microsoft:masterfrom
nicksnyder:activitybar
Jun 14, 2017
Merged

Benjamin Pasero (bpasero) merged 2 commits into
microsoft:masterfrom
nicksnyder:activitybar

Conversation

@nicksnyder

Copy link
Copy Markdown
Contributor

This avoids a javascript error if unpin is called before the activity bar renders.

This avoids a javascript error if unpin is called before the activity
bar renders.
@bpasero Benjamin Pasero (bpasero) added this to the June 2017 milestone Jun 13, 2017
this.pinnedViewlets.splice(index, 1);

this.updateViewletSwitcher();
if (this.viewletSwitcherBar) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nick Snyder (@nicksnyder) should we not just move this check into the updateViewletSwitcher method? There are many more places where we call it.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Makes sense, updated.

@nicksnyder Nick Snyder (nicksnyder) changed the title During unpin, only update viewlet switcher if it has already been rendered Only update viewlet switcher if it has already been rendered Jun 13, 2017
@bpasero

Copy link
Copy Markdown
Contributor

LGTM

@bpasero
Benjamin Pasero (bpasero) merged commit b33113d into microsoft:master Jun 14, 2017
@nicksnyder
Nick Snyder (nicksnyder) deleted the activitybar branch November 2, 2017 17:33
@github-actions github-actions Bot locked and limited conversation to collaborators Mar 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants