Add caption for free to free busy modal

Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
Richard Steinmetz 2021-06-08 08:20:08 +02:00
parent a98e42717d
commit ed220009b2
No known key found for this signature in database
GPG Key ID: 31BA3356F0FA2874
3 changed files with 6 additions and 2 deletions

View File

@ -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;
}

View File

@ -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'),
}, {

View File

@ -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)'