mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-31 04:59:21 +03:00
Underscore.js _.map() to native Array.map() (optional with Object.entries/values)
This commit is contained in:
parent
032fa8c736
commit
a82575a830
27 changed files with 68 additions and 78 deletions
|
|
@ -48,7 +48,7 @@ class ContactsAdminSettings {
|
|||
|
||||
this.contactsTypes = ko.observableArray([]);
|
||||
this.contactsTypesOptions = ko.computed(() =>
|
||||
_.map(this.contactsTypes(), (value) => {
|
||||
this.contactsTypes().map(value => {
|
||||
const disabled = supportedTypes.includes(value);
|
||||
return {
|
||||
'id': value,
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ class GeneralAdminSettings {
|
|||
: '';
|
||||
|
||||
this.themesOptions = ko.computed(() =>
|
||||
_.map(this.themes(), (theme) => ({ optValue: theme, optText: convertThemeName(theme) }))
|
||||
this.themes().map(theme => ({ optValue: theme, optText: convertThemeName(theme) }))
|
||||
);
|
||||
|
||||
this.languageFullName = ko.computed(() => convertLangName(this.language()));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue