Skip to content

Commit

Permalink
Add alert to the Sensors page (#77)
Browse files Browse the repository at this point in the history
* Add alert to the Sensors page

Sensors information is taking a long time to laod

- Add an alert that tells the user that the sensors may take a while to load

Signed-off-by: Kenneth Fullbright <kennyneedsmilky@gmail.com>
  • Loading branch information
Kenneth Fullbright authored and GitHub Enterprise committed Mar 1, 2022
1 parent 36a975c commit eac942b
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/locales/en-US.json
Original file line number Diff line number Diff line change
Expand Up @@ -948,6 +948,7 @@
"utilizationThreshold": "Utilization threshold (in %)"
},
"pageSensors": {
"alert": "This page might take a few minutes to load",
"exportFilePrefix": "sensors_",
"searchForSensors": "Search for sensors",
"table": {
Expand Down
11 changes: 11 additions & 0 deletions src/views/HardwareStatus/Sensors/Sensors.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
<template>
<b-container fluid="xl">
<page-title />
<b-row>
<b-col md="8" xl="6">
<alert variant="info" class="mb-4">
<span>
{{ $t('pageSensors.alert') }}
</span>
</alert>
</b-col>
</b-row>
<b-row class="align-items-end">
<b-col sm="6" md="5" xl="4">
<search
Expand Down Expand Up @@ -129,6 +138,7 @@
</template>

<script>
import Alert from '@/components/Global/Alert';
import PageTitle from '@/components/Global/PageTitle';
import Search from '@/components/Global/Search';
import StatusIcon from '@/components/Global/StatusIcon';
Expand Down Expand Up @@ -156,6 +166,7 @@ import SearchFilterMixin, {
export default {
name: 'Sensors',
components: {
Alert,
PageTitle,
Search,
StatusIcon,
Expand Down

0 comments on commit eac942b

Please sign in to comment.