@salesforcedevs/docs-components 1.3.227-newdocux-alpha-m2 → 1.3.227-newdocux-alpha4

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.227-newdocux-alpha-m2",
3
+ "version": "1.3.227-newdocux-alpha4",
4
4
  "description": "Docs Lightning web components for DSC",
5
5
  "license": "MIT",
6
6
  "main": "index.js",
@@ -16,7 +16,7 @@
16
16
  <p class="selected-version-label">
17
17
  {selectedVersion.label}
18
18
  </p>
19
- <template lwc:if={hideBadge}>
19
+ <template lwc:if={showLatestTag}>
20
20
  <dx-type-badge
21
21
  class="latest-badge"
22
22
  if:true={latestVersion}
@@ -44,7 +44,7 @@ export default class VersionPicker extends LightningElement {
44
44
 
45
45
  @api
46
46
  get hideBadge() {
47
- return !this._hideBadge;
47
+ return this._hideBadge;
48
48
  }
49
49
 
50
50
  set hideBadge(value) {
@@ -54,4 +54,8 @@ export default class VersionPicker extends LightningElement {
54
54
  private get showVersionPicker() {
55
55
  return this._versions && this._versions.length !== 0;
56
56
  }
57
+
58
+ private get showLatestTag(): boolean {
59
+ return !this.hideBadge;
60
+ }
57
61
  }