mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-01 13:39:22 +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
|
|
@ -1,5 +1,4 @@
|
|||
import window from 'window';
|
||||
import _ from '_';
|
||||
import ko from 'ko';
|
||||
|
||||
import Jua from 'Jua';
|
||||
|
|
@ -63,7 +62,7 @@ class ThemesUserSettings {
|
|||
const currentTheme = this.theme();
|
||||
|
||||
this.themesObjects(
|
||||
_.map(this.themes(), (theme) => ({
|
||||
this.themes().map(theme => ({
|
||||
name: theme,
|
||||
nameDisplay: convertThemeName(theme),
|
||||
selected: ko.observable(theme === currentTheme),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue