actually use the name when saving
This commit is contained in:
parent
0f3ddb9c03
commit
f4677a7b7b
|
@ -238,6 +238,9 @@ function getStyles(options) {
|
|||
cachedStyles.byId.clear();
|
||||
for (const style of cachedStyles.list) {
|
||||
cachedStyles.byId.set(style.id, style);
|
||||
if (!style.name) {
|
||||
style.name = 'ID: ' + style.id;
|
||||
}
|
||||
}
|
||||
|
||||
cachedStyles.mutex.inProgress = false;
|
||||
|
|
|
@ -387,7 +387,7 @@ function save() {
|
|||
|
||||
saveStyleSafe({
|
||||
id: styleId,
|
||||
name: name,
|
||||
name: $('#name').value.trim(),
|
||||
enabled: $('#enabled').checked,
|
||||
reason: 'editSave',
|
||||
sections: getSectionsHashes()
|
||||
|
|
Loading…
Reference in New Issue
Block a user