From ed220009b237e9009041d5e72a421d70cddf1893 Mon Sep 17 00:00:00 2001 From: Richard Steinmetz Date: Tue, 8 Jun 2021 08:20:08 +0200 Subject: [PATCH] Add caption for free to free busy modal Signed-off-by: Richard Steinmetz --- css/freebusy.scss | 2 +- src/components/Editor/FreeBusy/FreeBusy.vue | 4 ++++ src/utils/freebusy.js | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/css/freebusy.scss b/css/freebusy.scss index 6bfe3a340..270ab06b0 100644 --- a/css/freebusy.scss +++ b/css/freebusy.scss @@ -76,7 +76,7 @@ height: 1em; width: 2em; display: block; - border: var(--color-border-dark); + border: 1px solid var(--color-border-dark); opacity: 0.8; } diff --git a/src/components/Editor/FreeBusy/FreeBusy.vue b/src/components/Editor/FreeBusy/FreeBusy.vue index 69f4e84d2..9f59e19ba 100644 --- a/src/components/Editor/FreeBusy/FreeBusy.vue +++ b/src/components/Editor/FreeBusy/FreeBusy.vue @@ -196,6 +196,10 @@ export default { */ colorCaption() { return [{ + // TRANSLATORS: free as in available + label: this.$t('calendar', 'Free'), + color: getColorForFBType('FREE'), + }, { label: this.$t('calendar', 'Busy (tentative)'), color: getColorForFBType('BUSY-TENTATIVE'), }, { diff --git a/src/utils/freebusy.js b/src/utils/freebusy.js index 8dc317361..110952739 100644 --- a/src/utils/freebusy.js +++ b/src/utils/freebusy.js @@ -29,7 +29,7 @@ export function getColorForFBType(type = 'BUSY') { switch (type) { case 'FREE': - return 'rgb(110,166,143)' + return 'rgba(255,255,255,0)' case 'BUSY-TENTATIVE': return 'rgb(221,203,85)'