mirror of https://github.com/nextcloud/calendar
Add caption for free to free busy modal
Signed-off-by: Richard Steinmetz <richard@steinmetz.cloud>
This commit is contained in:
parent
a98e42717d
commit
ed220009b2
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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'),
|
||||
}, {
|
||||
|
|
|
@ -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)'
|
||||
|
|
Loading…
Reference in New Issue