This commit is contained in:
Douglas Barone 2022-04-04 12:07:43 -04:00
parent c5785757ee
commit fcedb29135
2 changed files with 24 additions and 17 deletions

View File

@ -62,8 +62,8 @@ export async function userPresence(_, { search }) {
thumbnailPhoto: userPresence.thumbnailPhoto, thumbnailPhoto: userPresence.thumbnailPhoto,
lastSeen: userPresence.wifiDevices[0].lastSeen, lastSeen: userPresence.wifiDevices[0].lastSeen,
status: userPresence.wifiDevices[0].status, status: userPresence.wifiDevices[0].status,
apName: userPresence.wifiDevices[0].apName, apName: userPresence.wifiDevices[0].accessPoint?.name || userPresence.wifiDevices[0].apName || userPresence.wifiDevices[0].accessPoint?.hostname,
local: userPresence.wifiDevices[0].accessPoint.local local: userPresence.wifiDevices[0].accessPoint?.local
})) }))
.slice(0, 200) .slice(0, 200)
} }

View File

@ -139,8 +139,15 @@
<span class="font-weight-medium">On-line</span> <span class="font-weight-medium">On-line</span>
</v-list-item-subtitle> </v-list-item-subtitle>
<v-list-item-subtitle> <v-list-item-subtitle>
<span class="font-weight-medium"> <span
{{ userPresence.local || userPresence.apName }} v-if="userPresence.local"
class="font-weight-medium"
>
{{ userPresence.local }}
</span>
<span v-else>
Próximo ao AP
{{ userPresence.apName }}
</span> </span>
</v-list-item-subtitle> </v-list-item-subtitle>
</template> </template>