mirror of
https://github.com/kevin-DL/build-gmail-clone-with-vue-3.git
synced 2026-01-11 18:54:31 +00:00
VMail Inbox or Archive, dynamically
This commit is contained in:
@@ -8,7 +8,7 @@
|
||||
Archived View
|
||||
</button>
|
||||
|
||||
<h1>VMail Inbox</h1>
|
||||
<h1>VMail {{capitalize(selectedScreen)}}</h1>
|
||||
|
||||
<BulkActionBar :emails="filteredEmails"
|
||||
:selectedScreen="selectedScreen" />
|
||||
@@ -43,6 +43,11 @@
|
||||
selectScreen(newScreen) {
|
||||
this.selectedScreen = newScreen;
|
||||
this.emailSelection.clear();
|
||||
},
|
||||
capitalize(word) {
|
||||
if(!word || !word.length){ return; }
|
||||
|
||||
return word[0].toUpperCase() + word.slice(1)
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
|
||||
Reference in New Issue
Block a user