mirror of
https://github.com/bitwarden/browser
synced 2025-12-17 00:33:44 +00:00
autofill card expiration
This commit is contained in:
@@ -195,6 +195,14 @@ angular
|
||||
}
|
||||
});
|
||||
|
||||
$scope.formatYear = function (year) {
|
||||
if (year.length == 2) {
|
||||
return '20' + year;
|
||||
}
|
||||
|
||||
return year;
|
||||
};
|
||||
|
||||
function totpUpdateCode() {
|
||||
if ($scope.cipher.type !== constantsService.cipherType.login || !$scope.cipher.login.totp) {
|
||||
return;
|
||||
|
||||
@@ -111,7 +111,9 @@
|
||||
</div>
|
||||
<div class="list-section-item" ng-if="cipher.card.expMonth || cipher.card.expYear">
|
||||
<span class="item-label">{{i18n.expiration}}</span>
|
||||
{{cipher.card.expMonth ? ('0' + cipher.card.expMonth).slice(-2) : '-'}}/{{cipher.card.expYear || '-'}}
|
||||
{{cipher.card.expMonth ? ('0' + cipher.card.expMonth).slice(-2) : '__'}}
|
||||
/
|
||||
{{cipher.card.expYear ? formatYear(cipher.card.expYear) : '____'}}
|
||||
</div>
|
||||
<div class="list-section-item" ng-if="cipher.card.code">
|
||||
<div class="action-buttons">
|
||||
|
||||
Reference in New Issue
Block a user