Browse Source
Fix LangSelector and ClientCard z-index (#2434)
fix client card
pull/2440/head
Bernd Storath
4 months ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
6 additions and
5 deletions
-
src/app/components/ClientCard/ClientCard.vue
-
src/app/stores/clients.ts
|
|
|
@ -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" /> |
|
|
|
|
|
|
|
@ -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; |
|
|
|
|