File tree Expand file tree Collapse file tree 1 file changed +2
-4
lines changed
packages/shared/routes/dashboard/wallet/views Expand file tree Collapse file tree 1 file changed +2
-4
lines changed Original file line number Diff line number Diff line change 1414 let lastBackupDate
1515 let lastBackupDateFormatted
1616 let color
17- let strongholdStatusMessage
1817
1918 function setup() {
2019 const ap = get (activeProfile )
2120 const lastStrongholdBackupTime = ap ?.lastStrongholdBackupTime
2221 lastBackupDate = lastStrongholdBackupTime ? new Date (lastStrongholdBackupTime ) : null
2322 lastBackupDateFormatted = diffDates (lastBackupDate , new Date ())
2423 color = getBackupWarningColor (lastBackupDate )
25- strongholdStatusMessage = get (isStrongholdLocked ) ? ' locked' : ' unlocked'
2624 }
2725
2826 function handleSecurityTileClick(popupType ) {
7775 <!-- Stronghold status -->
7876 <SecurityTile
7977 title ={locale (' views.dashboard.security.strongholdStatus.title' )}
80- message ={locale (` views.dashboard.security.strongholdStatus.${strongholdStatusMessage } ` )}
78+ message ={locale (` views.dashboard.security.strongholdStatus.${$isStrongholdLocked ? ' locked ' : ' unlocked ' } ` )}
8179 color ={$isStrongholdLocked ? ' blue' : ' yellow' }
82- icon =" lock"
80+ icon ={ $isStrongholdLocked ? ' lock' : ' unlock ' }
8381 onClick ={() => ($isStrongholdLocked ? handleSecurityTileClick (' password' ) : lockStronghold ())} />
8482 <!-- Stronghold backup -->
8583 <SecurityTile
You can’t perform that action at this time.
0 commit comments