From 8f57923ea99f42f5f030d81ff831c173680c4e19 Mon Sep 17 00:00:00 2001
From: Zachary-Rude <84681078+Zachary-Rude@users.noreply.github.com>
Date: Mon, 20 Sep 2021 16:36:04 -0700
Subject: [PATCH 1/3] Update script.js
---
script.js | 12 ++++++------
1 file changed, 6 insertions(+), 6 deletions(-)
diff --git a/script.js b/script.js
index 21cab3d..4b940a4 100644
--- a/script.js
+++ b/script.js
@@ -30,7 +30,7 @@ function renderEmails() {
var emailDataTemp = filteredEmailData;
- if (activePage == 'favourites') {
+ if (activePage == 'favorites') {
emailDataTemp = emailDataTemp.filter(x => x.isFavorite)
}
@@ -53,7 +53,7 @@ function renderEmails() {
${email.subject.substr(0, 30)} ${email.subject.length > 30 ? '...' : ''}
@@ -162,11 +162,11 @@ async function setActiveEmail(id) {
}
/**
- * @desc Toggle favourite against an email to add/remove email from favourites list
+ * @desc Toggle favourite against an email to add/remove email from favorites list
* @param {*} e
* @param {String} id
*/
-function toggleFavourite(e, id) {
+function toggleFavorite(e, id) {
// To prevent event bubbling
e.stopPropagation();
@@ -220,7 +220,7 @@ function getEmailFromApi(id = "") {
}
/**
- * @desc set active folder (Inbox, Favourites)
+ * @desc set active folder (Inbox, favorites)
*/
const foldersListElement = document.querySelector('#folders > ul').children;
function setActiveFolder(ele) {
@@ -275,4 +275,4 @@ getEmailFromApi()
*/
utility.makeResizable({ id: 'folders', minWidth: '15%', maxWidth: '400px' })
-utility.makeResizable({ id: 'emailList', minWidth: '30%', maxWidth: '550px' })
\ No newline at end of file
+utility.makeResizable({ id: 'emailList', minWidth: '30%', maxWidth: '550px' })
From 8934ee9a876c751ca01000eec86a25869e5c2e65 Mon Sep 17 00:00:00 2001
From: Zachary-Rude <84681078+Zachary-Rude@users.noreply.github.com>
Date: Mon, 20 Sep 2021 16:38:02 -0700
Subject: [PATCH 2/3] Update index.html
---
index.html | 20 +++++++-------------
1 file changed, 7 insertions(+), 13 deletions(-)
diff --git a/index.html b/index.html
index 805752e..d835595 100644
--- a/index.html
+++ b/index.html
@@ -18,14 +18,14 @@
@@ -57,7 +51,7 @@