refactor: ♻️ show disabled message if disabled

ref: https://git.joinfirefish.org/firefish/firefish/-/issues/10527#note_230
This commit is contained in:
ThatOneCalculator 2023-07-25 21:53:31 -07:00
parent 03ddc970d5
commit 487fd3faaf
No known key found for this signature in database
GPG key ID: 8703CACD01000000

View file

@ -12,8 +12,13 @@
<i class="ph-sort-ascending ph-bold ph-lg"></i></button
></template>
<div v-if="!instance.enableServerMachineStats" class="mkw-serverMetric">
<h3 style="text-align: center; color: var(--error)">
{{ i18n.ts.disabled }}
</h3>
</div>
<div
v-if="meta && instance.enableServerMachineStats"
v-else-if="meta && instance.enableServerMachineStats"
class="mkw-serverMetric"
>
<XCpuMemory