Skip to content

Commit

Permalink
feat: new category for payments (#1)
Browse files Browse the repository at this point in the history
  • Loading branch information
dgokcin authored Aug 11, 2024
1 parent 94e23a9 commit 91aeb9e
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions Code.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ const emojiMap = {
'appointment': '📅',
'tamir': '🛠️',
'repair': '🛠️',
'payment': '💸',
};

function ColorEvents() {
Expand Down Expand Up @@ -89,6 +90,10 @@ function ColorEvents() {
Logger.log("Title: " + title + " - Color to print: GRAY");
}
else if (originalTitle.includes("tamir") || originalTitle.includes("repair")) {
color = CalendarApp.EventColor.PINK;
Logger.log("Title: " + title + " - Color to print: PINK");
}
else if (originalTitle.includes("payment")) {
color = CalendarApp.EventColor.GREEN;
Logger.log("Title: " + title + " - Color to print: GREEN");
}
Expand Down

0 comments on commit 91aeb9e

Please sign in to comment.