mirror of
https://github.com/bitwarden/browser
synced 2025-12-15 07:43:35 +00:00
matchValue defaults
This commit is contained in:
@@ -17,7 +17,8 @@ angular
|
||||
login: {
|
||||
uris: [{
|
||||
uri: null,
|
||||
match: null
|
||||
match: null,
|
||||
matchValue: null
|
||||
}]
|
||||
},
|
||||
identity: {},
|
||||
@@ -35,8 +36,6 @@ angular
|
||||
angular.extend($scope.cipher, $stateParams.cipher);
|
||||
}
|
||||
|
||||
setUriMatchValues();
|
||||
|
||||
$timeout(function () {
|
||||
popupUtilsService.initListSectionItemListeners(document, angular);
|
||||
|
||||
@@ -128,6 +127,7 @@ angular
|
||||
$scope.cipher.login.uris.push({
|
||||
uri: null,
|
||||
match: null,
|
||||
matchValue: null
|
||||
});
|
||||
|
||||
$timeout(function () {
|
||||
@@ -193,14 +193,4 @@ angular
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
function setUriMatchValues() {
|
||||
if ($scope.cipher.login && $scope.cipher.login.uris) {
|
||||
for (var i = 0; i < $scope.cipher.login.uris.length; i++) {
|
||||
$scope.cipher.login.uris[i].matchValue =
|
||||
$scope.cipher.login.uris[i].match || $scope.cipher.login.uris[i].match === 0 ?
|
||||
$scope.cipher.login.uris[i].match.toString() : '';
|
||||
}
|
||||
}
|
||||
}
|
||||
});
|
||||
|
||||
@@ -141,6 +141,7 @@ angular
|
||||
$scope.cipher.login.uris.push({
|
||||
uri: null,
|
||||
match: null,
|
||||
matchValue: null
|
||||
});
|
||||
|
||||
$timeout(function () {
|
||||
|
||||
Reference in New Issue
Block a user