feat: added navbar

This commit is contained in:
Smigz 2023-12-29 07:28:13 -05:00
parent f18b11a22b
commit 99a09a0f06
5 changed files with 62 additions and 3 deletions

View file

@ -85,10 +85,10 @@ class todoHandler {
}
getProjects () {
return this.projects.map(item => item.name);
return this.projects;
}
delProject = name => {
delProject(name) {
let index = this.projects.findIndex(proj => proj.name === name);
let tempArr = this.projects.filter(item => {
if (item !== this.projects[index] || name === 'default' ){