Skip to content

Commit

Permalink
rename params
Browse files Browse the repository at this point in the history
  • Loading branch information
alicialics committed Apr 4, 2023
1 parent cb0e399 commit ae45d4c
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -398,8 +398,8 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
this.customSelectedSearchByMetadataOption =
this.searchByMetadataOptions[Math.max(0, searchByMetadataIndex)];
}
public showTab(id: ProjectionType) {
const tab = this.$$('.ink-tab[data-tab="' + id + '"]') as HTMLElement;
public showTab(projection: ProjectionType) {
const tab = this.$$('.ink-tab[data-tab="' + projection + '"]') as HTMLElement;
const allTabs = this.root?.querySelectorAll('.ink-tab');
if (allTabs) {
for (let i = 0; i < allTabs.length; i++) {
Expand All @@ -414,7 +414,7 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
}
}
util.classed(
this.$$('.ink-panel-content[data-panel="' + id + '"]') as HTMLElement,
this.$$('.ink-panel-content[data-panel="' + projection + '"]') as HTMLElement,
'active',
true
);
Expand All @@ -427,7 +427,7 @@ class ProjectionsPanel extends LegacyElementMixin(PolymerElement) {
this.style.height = main.clientHeight + 'px';
});
}
this.beginProjection(id);
this.beginProjection(projection);
}
private beginProjection(projection: ProjectionType) {
if (this.polymerChangesTriggerReprojection === false) {
Expand Down

0 comments on commit ae45d4c

Please sign in to comment.