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:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
@@ -8,6 +8,16 @@ const consts = {
|
||||
'#1FAD85',
|
||||
'#E10051',
|
||||
'#B013A4'
|
||||
],
|
||||
FOLDER_COLOR_NAMES: [
|
||||
'Cerulean Blue',
|
||||
'Dodger Blue',
|
||||
'Pizazz',
|
||||
'Confetti',
|
||||
'Emerald',
|
||||
'Mountain Meadow',
|
||||
'Razzmatazz',
|
||||
'Violet Eggplant'
|
||||
]
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user