mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-07-10 15:08:28 +03:00
parent
9bdd7d5564
commit
13c23141ee
12 changed files with 34 additions and 9 deletions
|
|
@ -25,6 +25,8 @@ import { /*koComputable,*/ addObservablesTo } from 'External/ko';
|
|||
|
||||
import Remote from 'Remote/User/Fetch';
|
||||
|
||||
import { FileInfo } from 'Common/File';
|
||||
|
||||
const
|
||||
// isPosNumeric = value => null != value && /^[0-9]*$/.test(value.toString()),
|
||||
|
||||
|
|
@ -304,6 +306,7 @@ export class FolderModel extends AbstractModel {
|
|||
this.etag = '';
|
||||
this.id = 0;
|
||||
this.uidNext = 0;
|
||||
this.size = 0;
|
||||
|
||||
addObservablesTo(this, {
|
||||
name: '',
|
||||
|
|
@ -456,6 +459,8 @@ export class FolderModel extends AbstractModel {
|
|||
return '';
|
||||
},
|
||||
|
||||
friendlySize: () => FileInfo.friendlySize(this.size),
|
||||
|
||||
detailedName: () => this.name() + ' ' + this.nameInfo(),
|
||||
|
||||
hasSubscribedUnreadMessagesSubfolders: () =>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue