@salesforcedevs/docs-components 1.3.138-coveoversion-alpha2 → 1.3.138-coveoversion-alpha3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforcedevs/docs-components",
3
- "version": "1.3.138-coveoversion-alpha2",
3
+ "version": "1.3.138-coveoversion-alpha3",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <doc-content-layout
3
- if:true={selectedVersionChanges}
3
+ if:true={loaded}
4
4
  use-old-sidebar={useOldSidebar}
5
5
  class="content-type content-type-reference"
6
6
  coveo-organization-id={coveoOrganizationId}
@@ -41,7 +41,7 @@ export default class AmfReference extends LightningElement {
41
41
  @track navigation = [];
42
42
  @track versions: Array<ReferenceVersion> = [];
43
43
  @track showVersionBanner = false;
44
- @track selectedVersionChanges = false;
44
+ @track loaded = false;
45
45
 
46
46
  // Update this to update what component gets rendered in the content block
47
47
  @track
@@ -105,13 +105,14 @@ export default class AmfReference extends LightningElement {
105
105
  this.versions = this.getVersions();
106
106
  }
107
107
  this.selectedVersion = selectedVersion;
108
- if (
109
- this.isSpecBasedReference(this._currentReferenceId) &&
110
- this.oldVersionInfo
111
- ) {
112
- this.showVersionBanner = true;
108
+ if (this.isSpecBasedReference(this._currentReferenceId)) {
109
+ this.loaded = true;
110
+ if (this.oldVersionInfo) {
111
+ this.showVersionBanner = true;
112
+ }
113
113
  }
114
- this.selectedVersionChanges = true;
114
+ } else {
115
+ this.loaded = true;
115
116
  }
116
117
 
117
118
  // This is to check if the url is hash based and redirect if needed
@@ -1279,7 +1280,7 @@ export default class AmfReference extends LightningElement {
1279
1280
  if (this.oldVersionInfo) {
1280
1281
  this.showVersionBanner = true;
1281
1282
  }
1282
- this.selectedVersionChanges = true;
1283
+ this.loaded = true;
1283
1284
  this.updateDocPhase();
1284
1285
  this.selectedSidebarValue = window.location.pathname;
1285
1286
  }