Parse date trough moment
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
This commit is contained in:
parent
637920f669
commit
bf30090be5
|
@ -236,7 +236,7 @@
|
||||||
isPasswordSet: hasPassword,
|
isPasswordSet: hasPassword,
|
||||||
secureDropMode: !this.model.hasReadPermission(shareIndex),
|
secureDropMode: !this.model.hasReadPermission(shareIndex),
|
||||||
hasExpireDate: this.model.getExpireDate(shareIndex) !== null,
|
hasExpireDate: this.model.getExpireDate(shareIndex) !== null,
|
||||||
expireDate: this.model.getExpireDate(shareIndex),
|
expireDate: moment(this.model.getExpireDate(shareIndex), 'YYYY-MM-DD').format('DD-MM-YYYY'),
|
||||||
passwordPlaceholder: hasPassword ? PASSWORD_PLACEHOLDER : PASSWORD_PLACEHOLDER_MESSAGE,
|
passwordPlaceholder: hasPassword ? PASSWORD_PLACEHOLDER : PASSWORD_PLACEHOLDER_MESSAGE,
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue