refactor: move /admin into vue component (#3466)
This commit is contained in:
@@ -125,6 +125,12 @@ window.windowMixin = {
|
||||
})
|
||||
}
|
||||
},
|
||||
formatDate(date) {
|
||||
return moment
|
||||
.utc(date * 1000)
|
||||
.local()
|
||||
.fromNow()
|
||||
},
|
||||
formatBalance(amount) {
|
||||
if (LNBITS_DENOMINATION != 'sats') {
|
||||
return LNbits.utils.formatCurrency(amount / 100, LNBITS_DENOMINATION)
|
||||
|
||||
Reference in New Issue
Block a user