Skip to content

Commit 0c997a6

Browse files
committed
Add emoji when phone is charging
1 parent f2ee2c1 commit 0c997a6

2 files changed

Lines changed: 10 additions & 1 deletion

File tree

web/components/MessageThreadHeader.vue

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,13 @@
5454
icon
5555
v-on="on"
5656
>
57-
<v-icon x-small>{{ mdiCircle }}</v-icon>
57+
<v-icon
58+
v-if="$store.getters.getHeartbeat.charging"
59+
small
60+
class="mt-n1"
61+
>{{ mdiBatteryCharging }}</v-icon
62+
>
63+
<v-icon v-else x-small>{{ mdiCircle }}</v-icon>
5864
</v-btn>
5965
</template>
6066
<h4>Last Heartbeat</h4>
@@ -201,6 +207,7 @@ import {
201207
mdiLogout,
202208
mdiDownload,
203209
mdiFinance,
210+
mdiBatteryChargingHigh,
204211
mdiPackageUp,
205212
mdiPackageDown,
206213
mdiDotsVertical,
@@ -223,6 +230,7 @@ export default class MessageThreadHeader extends Vue {
223230
mdiPackageDown = mdiPackageDown
224231
mdiDotsVertical = mdiDotsVertical
225232
mdiCircle = mdiCircle
233+
mdiBatteryCharging = mdiBatteryChargingHigh
226234
227235
get owners(): Array<SelectItem> {
228236
return this.$store.getters.getPhones.map(

web/models/heartbeat.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
export interface Heartbeat {
22
id: string
33
owner: string
4+
charging: boolean
45
timestamp: string
56
}

0 commit comments

Comments
 (0)