mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-08-29 20:19:22 +03:00
Merge Objects prototype extensions
This commit is contained in:
parent
0647b5201f
commit
f2d194947d
26 changed files with 108 additions and 127 deletions
|
|
@ -2,7 +2,7 @@ import ko from 'ko';
|
|||
|
||||
import { FileType } from 'Common/Enums';
|
||||
import { bMobileDevice } from 'Common/Globals';
|
||||
import { pInt, isNonEmptyArray, getFileExtension, friendlySize } from 'Common/Utils';
|
||||
import { pInt, getFileExtension, friendlySize } from 'Common/Utils';
|
||||
import {
|
||||
attachmentDownload,
|
||||
attachmentPreview,
|
||||
|
|
@ -149,7 +149,7 @@ export const staticCombinedIconClass = (data) => {
|
|||
let result = '',
|
||||
types = [];
|
||||
|
||||
if (isNonEmptyArray(data)) {
|
||||
if (Array.isNotEmpty(data)) {
|
||||
result = 'icon-attachment';
|
||||
types = data.map(item => item ? staticFileType(getFileExtension(item[0]), item[1]) : '')
|
||||
.filter((value, index, self) => !!value && self.indexOf(value) == index);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue