diff --git a/dashboard/src/components/StateLED.vue b/dashboard/src/components/StateLED.vue new file mode 100644 index 000000000..c2eae3172 --- /dev/null +++ b/dashboard/src/components/StateLED.vue @@ -0,0 +1,27 @@ + + + diff --git a/dashboard/src/style.css b/dashboard/src/style.css index 415f9c146..bf0dfad13 100644 --- a/dashboard/src/style.css +++ b/dashboard/src/style.css @@ -83,12 +83,6 @@ footer > .p { margin: 4px; } - -/* TODO use pankow has-error everywhere instead*/ -.text-danger { - color: var(--pankow-color-danger); -} - .content { max-width: 1280px; width: 100%; @@ -148,22 +142,22 @@ tr:hover .table-actions { /* status classes for circle indicators */ .status-active { - color: #27CE65; + color: #27CE65; } .status-inactive { - color: #7c7c7c; + color: #7c7c7c; } .status-starting { - color: #f0ad4e; + color: #f0ad4e; } .status-error { - color: #ec534f; + color: #ec534f; } -/* generic test modifiers */ +/* generic text modifiers */ .text-success { color: #5CB85C; } @@ -172,6 +166,10 @@ tr:hover .table-actions { color: #8a6d3b; } +.text-danger { + color: var(--pankow-color-danger); +} + .text-bold { font-weight: bold; } diff --git a/dashboard/src/views/BackupsView.vue b/dashboard/src/views/BackupsView.vue index abdf465ab..eb071c285 100644 --- a/dashboard/src/views/BackupsView.vue +++ b/dashboard/src/views/BackupsView.vue @@ -4,6 +4,7 @@ import { ref, onMounted, useTemplateRef } from 'vue'; import { marked } from 'marked'; import { Button } from 'pankow'; import Section from '../components/Section.vue'; +import StateLED from '../components/StateLED.vue'; import BackupDialog from '../components/BackupDialog.vue'; import BackupSchedule from '../components/BackupSchedule.vue'; import BackupList from '../components/BackupList.vue'; @@ -87,7 +88,7 @@ onMounted(async () => {
{{ config.backupFolder }} - + {{ mountOptions.diskPath || config.mountPoint }}{{ (config.prefix ? '/' : '') + config.prefix }} {{ mountOptions.host }}:{{ mountOptions.remoteDir }}{{ (config.prefix ? '/' : '') + config.prefix }} diff --git a/dashboard/src/views/EmailView.vue b/dashboard/src/views/EmailView.vue index e0ea6eea7..12553aa8d 100644 --- a/dashboard/src/views/EmailView.vue +++ b/dashboard/src/views/EmailView.vue @@ -8,6 +8,7 @@ import { ref, onMounted, useTemplateRef } from 'vue'; import { Button, TableView, ProgressBar, InputDialog, Dialog, FormGroup, TextInput, InputGroup, Switch, ButtonGroup, SingleSelect } from 'pankow'; import { prettyDecimalSize } from 'pankow/utils'; import Section from '../components/Section.vue'; +import StateLED from '../components/StateLED.vue'; import SettingsItem from '../components/SettingsItem.vue'; import DomainsModel from '../models/DomainsModel.js'; import MailModel from '../models/MailModel.js'; @@ -385,8 +386,7 @@ onMounted(async () => {