mirror of
https://gitea.smigz.com/smiggiddy/odin-codeprojects.git
synced 2025-06-28 12:55:36 -04:00
feat: added navbar
This commit is contained in:
parent
f18b11a22b
commit
99a09a0f06
5 changed files with 62 additions and 3 deletions
|
@ -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' ){
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue