Website: Update vitals pages (#25981)

Changes:
- Updated the vitals page to not show PowerShell commands when Windows
is not the selected platform.
This commit is contained in:
Eric 2025-02-03 10:49:42 -06:00 committed by GitHub
parent 57ae189f86
commit f0cd0a6950
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -78,7 +78,7 @@
<div purpose="codeblock">
<div purpose="codeblock-tabs" >
<a purpose="codeblock-tab" :class="[ selectedTab === 'sql' ? 'selected' : '']" @click="selectedTab = 'sql'">Query</a>
<a purpose="codeblock-tab" :class="[ selectedTab === 'ps' ? 'selected' : '']" @click="selectedTab = 'ps'" v-if="thisVital.powershell">PowerShell<span purpose="new-badge">NEW</span></a>
<a purpose="codeblock-tab" :class="[ selectedTab === 'ps' ? 'selected' : '']" @click="selectedTab = 'ps'" v-if="thisVital.powershell && selectedPlatform === 'windows'">PowerShell<span purpose="new-badge">NEW</span></a>
<div purpose="copy-button-tab">
<div purpose="copy-button"></div>
</div>