|
44 | 44 | >
|
45 | 45 | <!-- TODO(mvilanova): Allow to view the list of individuals, teams, services, and notifications upon clicking on the chip -->
|
46 | 46 | <template #[`item.individuals`]="{ item }">
|
47 |
| - <v-chip small color="info" text-color="white">{{ item.individuals.length }}</v-chip> |
| 47 | + <v-chip v-if="item.individuals.length == 0" small color="green" text-color="white"> |
| 48 | + {{ item.individuals.length }} |
| 49 | + </v-chip> |
| 50 | + <v-chip v-if="item.individuals.length > 0" small color="red" text-color="white"> |
| 51 | + {{ item.individuals.length }} |
| 52 | + </v-chip> |
48 | 53 | </template>
|
49 | 54 | <template #[`item.teams`]="{ item }">
|
50 |
| - <v-chip small color="info" text-color="white">{{ item.teams.length }}</v-chip> |
| 55 | + <v-chip v-if="item.teams.length == 0" small color="green" text-color="white"> |
| 56 | + {{ item.teams.length }} |
| 57 | + </v-chip> |
| 58 | + <v-chip v-if="item.teams.length > 0" small color="red" text-color="white"> |
| 59 | + {{ item.teams.length }} |
| 60 | + </v-chip> |
51 | 61 | </template>
|
52 | 62 | <template #[`item.services`]="{ item }">
|
53 |
| - <v-chip small color="info" text-color="white">{{ item.services.length }}</v-chip> |
| 63 | + <v-chip v-if="item.services.length == 0" small color="green" text-color="white"> |
| 64 | + {{ item.services.length }} |
| 65 | + </v-chip> |
| 66 | + <v-chip v-if="item.services.length > 0" small color="red" text-color="white"> |
| 67 | + {{ item.services.length }} |
| 68 | + </v-chip> |
54 | 69 | </template>
|
55 | 70 | <template #[`item.notifications`]="{ item }">
|
56 |
| - <v-chip small color="info" text-color="white">{{ item.notifications.length }}</v-chip> |
| 71 | + <v-chip v-if="item.notifications.length == 0" small color="green" text-color="white"> |
| 72 | + {{ item.notifications.length }} |
| 73 | + </v-chip> |
| 74 | + <v-chip v-if="item.notifications.length > 0" small color="red" text-color="white"> |
| 75 | + {{ item.notifications.length }} |
| 76 | + </v-chip> |
57 | 77 | </template>
|
58 | 78 | <template #[`item.enabled`]="{ item }">
|
59 | 79 | <v-simple-checkbox v-model="item.enabled" disabled />
|
|
0 commit comments