Merge branch 'master' of github.com:Lissy93/dashy into FEATURE/basic-widget-support
This commit is contained in:
@@ -227,6 +227,9 @@ export default {
|
||||
};
|
||||
if (newItem.tags) newItem.tags = strToTags(newItem.tags);
|
||||
if (newItem.statusCheck) newItem.statusCheck = strToBool(newItem.statusCheck);
|
||||
if (newItem.statusCheckAllowInsecure) {
|
||||
newItem.statusCheckAllowInsecure = strToBool(newItem.statusCheckAllowInsecure);
|
||||
}
|
||||
// if (newItem.hotkey) newItem.hotkey = parseInt(newItem.hotkey, 10);
|
||||
return newItem;
|
||||
},
|
||||
|
||||
@@ -210,7 +210,7 @@ export default {
|
||||
},
|
||||
/* Sorts items alphabetically using the title attribute */
|
||||
sortAlphabetically(items) {
|
||||
return items.sort((a, b) => (a.title > b.title ? 1 : -1));
|
||||
return items.sort((a, b) => (a.title.toLowerCase() > b.title.toLowerCase() ? 1 : -1));
|
||||
},
|
||||
/* Sorts items by most used to least used, based on click-count */
|
||||
sortByMostUsed(items) {
|
||||
|
||||
Reference in New Issue
Block a user