Browse Source

Fix LangSelector and ClientCard z-index (#2434)

fix client card
pull/2440/head
Bernd Storath 4 months ago
committed by GitHub
parent
commit
1a5a0180ea
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      src/app/components/ClientCard/ClientCard.vue
  2. 9
      src/app/stores/clients.ts

2
src/app/components/ClientCard/ClientCard.vue

@ -1,7 +1,7 @@
<template>
<ClientCardCharts :client="client" />
<div
class="relative z-10 flex flex-col justify-between gap-3 px-3 py-3 sm:flex-row md:py-5"
class="relative flex flex-col justify-between gap-3 px-3 py-3 sm:flex-row md:py-5"
>
<div class="flex w-full items-center gap-3 md:gap-4">
<ClientCardAvatar :client="client" />

9
src/app/stores/clients.ts

@ -66,10 +66,11 @@ export const useClientsStore = defineStore('Clients', () => {
const clientPersist = clientsPersist.value[client.id]!;
// Debug
// client.transferRx = this.clientsPersist[client.id].transferRxPrevious + Math.random() * 1000;
// client.transferTx = this.clientsPersist[client.id].transferTxPrevious + Math.random() * 1000;
// client.latestHandshakeAt = new Date();
// this.requiresPassword = true;
/* client.transferRx =
clientPersist.transferRxPrevious + Math.random() * 1000;
client.transferTx =
clientPersist.transferTxPrevious + Math.random() * 1000;
client.latestHandshakeAt = new Date().toISOString(); */
clientPersist.transferRxCurrent =
(client.transferRx ?? 0) - clientPersist.transferRxPrevious;

Loading…
Cancel
Save