#9 - show app password use date in profile
Some checks failed
continuous-integration/drone/push Build is passing
continuous-integration/drone Build is failing

This commit is contained in:
2021-12-14 16:40:15 -06:00
parent fd8a05446a
commit cf91063315
6 changed files with 14 additions and 2 deletions

View File

@@ -131,6 +131,7 @@ const template = `
<div class="col-9">
{{ pw.name }}
<br><span class="text-muted font-italic">{{ t['profile.issued'] }} {{ pw.created }}</span>
<span class="text-muted font-italic">&nbsp;&nbsp;|&nbsp;&nbsp;&nbsp;{{ t['profile.accessed'] }} {{ pw.accessed || t['common.never'] }}</span>
</div>
<div class="col-3 my-auto">
<button
@@ -288,7 +289,9 @@ export default class EditProfileComponent extends Component {
'profile.save_notify',
'profile.test_notify',
'profile.advanced_header',
'profile.advanced_shell'
'profile.advanced_shell',
'profile.accessed',
'common.never'
)
this.app_name = session.get('app.name')
@@ -403,6 +406,7 @@ export default class EditProfileComponent extends Component {
this.app_passwords = app_pws.map(x => {
if ( x.expires ) x.expires = (new Date(x.expires)).toLocaleDateString()
if ( x.created ) x.created = (new Date(x.created)).toLocaleDateString()
if ( x.accessed ) x.accessed = (new Date(x.accessed)).toLocaleDateString()
return x
})
}