mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
Fix minor bug where screen with no emails showed them "all" selected
This commit is contained in:
@@ -42,7 +42,7 @@
|
|||||||
return emailSelection.emails.size;
|
return emailSelection.emails.size;
|
||||||
})
|
})
|
||||||
let allAreSelected = computed(() => {
|
let allAreSelected = computed(() => {
|
||||||
return props.emails.length == numberSelected.value;
|
return props.emails.length == numberSelected.value && numberSelected.value !== 0;
|
||||||
})
|
})
|
||||||
let partialSelection = computed(() => {
|
let partialSelection = computed(() => {
|
||||||
return numberSelected.value > 0 && !allAreSelected.value;
|
return numberSelected.value > 0 && !allAreSelected.value;
|
||||||
|
|||||||
Reference in New Issue
Block a user