1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 09:46:22 +00:00

rename, recolor, remove folder

This commit is contained in:
Rokt33r
2016-05-08 02:49:19 +09:00
parent 66856d1229
commit 70244f79ba
10 changed files with 327 additions and 504 deletions

View File

@@ -362,7 +362,7 @@ class Repository {
if (_.isString(override.name) && override.name.trim().length > 0) targetFolder.name = override.name.trim()
if (_.isString(override.color)) targetFolder.color = override.color
return this.updateJSON(this.json)
return this.saveJSON(this.json)
.then(() => targetFolder)
}
@@ -380,7 +380,7 @@ class Repository {
targetFolder = folders.splice(targetIndex, 1)[0]
}
return this.updateJSON(null)
return this.saveJSON(null)
.then(() => targetFolder)
}

View File

@@ -8,6 +8,16 @@ const consts = {
'#1FAD85',
'#E10051',
'#B013A4'
],
FOLDER_COLOR_NAMES: [
'Cerulean Blue',
'Dodger Blue',
'Pizazz',
'Confetti',
'Emerald',
'Mountain Meadow',
'Razzmatazz',
'Violet Eggplant'
]
}