@salesforcedevs/docs-components 1.3.139-coveo-fix-test4 → 1.3.139-coveo-fix-test5
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
|
@@ -110,9 +110,7 @@ export default class AmfReference extends LightningElement {
|
|
|
110
110
|
this.oldVersionInfo
|
|
111
111
|
) {
|
|
112
112
|
this.showVersionBanner = true;
|
|
113
|
-
|
|
114
|
-
newCoveoQueryConfig.version = selectedVersion.id;
|
|
115
|
-
this._coveoAdvancedQueryConfig = newCoveoQueryConfig;
|
|
113
|
+
this.setCurrentSelectedVersion();
|
|
116
114
|
}
|
|
117
115
|
}
|
|
118
116
|
|
|
@@ -184,6 +182,7 @@ export default class AmfReference extends LightningElement {
|
|
|
184
182
|
protected metadata: { [key: string]: AmfMetadataTopic } = {};
|
|
185
183
|
protected selectedTopic?: AmfMetaTopicType = undefined;
|
|
186
184
|
protected selectedSidebarValue = undefined;
|
|
185
|
+
protected curSelectedVersion = "latest";
|
|
187
186
|
|
|
188
187
|
protected selectedVersion: ReferenceVersion | null = null;
|
|
189
188
|
|
|
@@ -370,6 +369,12 @@ export default class AmfReference extends LightningElement {
|
|
|
370
369
|
return selectedVersion || (versions.length && versions[0]);
|
|
371
370
|
}
|
|
372
371
|
|
|
372
|
+
private setCurrentSelectedVersion() {
|
|
373
|
+
if (this.showVersionBanner) {
|
|
374
|
+
this.curSelectedVersion = this.getSelectedVersion().id;
|
|
375
|
+
}
|
|
376
|
+
}
|
|
377
|
+
|
|
373
378
|
private updateAmfConfigInView(): void {
|
|
374
379
|
if (this._amfConfigList && this._amfConfigList.length) {
|
|
375
380
|
// fetch AMF Json as soon as config is set
|
|
@@ -1286,9 +1291,7 @@ export default class AmfReference extends LightningElement {
|
|
|
1286
1291
|
this.versions = this.getVersions();
|
|
1287
1292
|
if (this.oldVersionInfo) {
|
|
1288
1293
|
this.showVersionBanner = true;
|
|
1289
|
-
|
|
1290
|
-
newCoveoQueryConfig.version = this.getSelectedVersion().id;
|
|
1291
|
-
this._coveoAdvancedQueryConfig = newCoveoQueryConfig;
|
|
1294
|
+
this.setCurrentSelectedVersion();
|
|
1292
1295
|
}
|
|
1293
1296
|
this.updateDocPhase();
|
|
1294
1297
|
this.selectedSidebarValue = window.location.pathname;
|