@salesforcedevs/docs-components 1.3.138-coveoversion-alpha1 → 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
|
@@ -41,6 +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 loaded = false;
|
|
44
45
|
|
|
45
46
|
// Update this to update what component gets rendered in the content block
|
|
46
47
|
@track
|
|
@@ -104,12 +105,14 @@ export default class AmfReference extends LightningElement {
|
|
|
104
105
|
this.versions = this.getVersions();
|
|
105
106
|
}
|
|
106
107
|
this.selectedVersion = selectedVersion;
|
|
107
|
-
if (
|
|
108
|
-
this.
|
|
109
|
-
this.oldVersionInfo
|
|
110
|
-
|
|
111
|
-
|
|
108
|
+
if (this.isSpecBasedReference(this._currentReferenceId)) {
|
|
109
|
+
this.loaded = true;
|
|
110
|
+
if (this.oldVersionInfo) {
|
|
111
|
+
this.showVersionBanner = true;
|
|
112
|
+
}
|
|
112
113
|
}
|
|
114
|
+
} else {
|
|
115
|
+
this.loaded = true;
|
|
113
116
|
}
|
|
114
117
|
|
|
115
118
|
// This is to check if the url is hash based and redirect if needed
|
|
@@ -1277,6 +1280,7 @@ export default class AmfReference extends LightningElement {
|
|
|
1277
1280
|
if (this.oldVersionInfo) {
|
|
1278
1281
|
this.showVersionBanner = true;
|
|
1279
1282
|
}
|
|
1283
|
+
this.loaded = true;
|
|
1280
1284
|
this.updateDocPhase();
|
|
1281
1285
|
this.selectedSidebarValue = window.location.pathname;
|
|
1282
1286
|
}
|