Skip to content

Commit

Permalink
frontend: add tooltips to date columns
Browse files Browse the repository at this point in the history
  • Loading branch information
USA-RedDragon committed Nov 20, 2024
1 parent 06455f0 commit e2eea9c
Show file tree
Hide file tree
Showing 6 changed files with 11 additions and 9 deletions.
2 changes: 1 addition & 1 deletion internal/http/frontend/src/components/LastHeardTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
>
<Column field="start_time" header="Time">
<template #body="slotProps">
<span v-if="!slotProps.data.active">{{
<span v-if="!slotProps.data.active" v-tooltip="slotProps.data.start_time.toString()">{{
slotProps.data.start_time.fromNow()
}}</span>
<span v-else>Active</span>
Expand Down
4 changes: 2 additions & 2 deletions internal/http/frontend/src/components/PeerTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
</template>
</Column>
<Column field="created_at" header="Created">
<template #body="slotProps">{{
<template #body="slotProps"><span v-tooltip="slotProps.data.created_at.toString()">{{
slotProps.data.created_at.fromNow()
}}</template>
}}</span></template>
</Column>
<template #expansion="slotProps">
<PVButton
Expand Down
4 changes: 2 additions & 2 deletions internal/http/frontend/src/components/RepeaterTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -222,9 +222,9 @@
</Column>
<Column field="hotspot" header="Hotspot"></Column>
<Column field="created_at" header="Created">
<template #body="slotProps">{{
<template #body="slotProps"><span v-tooltip="slotProps.data.created_at.toString()">{{
slotProps.data.created_at.fromNow()
}}</template>
}}</span></template>
</Column>
<template #expansion="slotProps">
<PVButton
Expand Down
4 changes: 2 additions & 2 deletions internal/http/frontend/src/components/TalkgroupTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@
</template>
</Column>
<Column field="created_at" header="Created">
<template #body="slotProps">{{
<template #body="slotProps"><span v-tooltip="slotProps.data.created_at.toString()">{{
slotProps.data.created_at.fromNow()
}}</template>
}}</span></template>
</Column>
<template
v-if="this.$props.admin || this.$props.owner"
Expand Down
4 changes: 2 additions & 2 deletions internal/http/frontend/src/components/UserTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,9 @@
v-if="!this.$props.approval"
></Column>
<Column field="created_at" header="Created">
<template #body="slotProps">{{
<template #body="slotProps"><span v-tooltip="slotProps.data.created_at.toString()">{{
slotProps.data.created_at.fromNow()
}}</template>
}}</span></template>
</Column>
<template #expansion="slotProps">
<PVButton
Expand Down
2 changes: 2 additions & 0 deletions internal/http/frontend/src/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ import DialogService from 'primevue/dialogservice';
import ConfirmationService from 'primevue/confirmationservice';
import Toast from 'primevue/toast';
import ConfirmDialog from 'primevue/confirmdialog';
import Tooltip from 'primevue/tooltip';

import App from './App.vue';
import router from './router';
Expand All @@ -51,6 +52,7 @@ app.use(PrimeVue);

app.component('PVToast', Toast);
app.component('ConfirmDialog', ConfirmDialog);
app.directive('tooltip', Tooltip);

features.getFeatures().then(() => {
app.use(router(features));
Expand Down

0 comments on commit e2eea9c

Please sign in to comment.