mirror of
https://github.com/bitwarden/browser
synced 2025-01-04 14:22:50 +01:00
matchValue defaults
This commit is contained in:
parent
5ef72091db
commit
84b114dc97
@ -17,7 +17,8 @@ angular
|
|||||||
login: {
|
login: {
|
||||||
uris: [{
|
uris: [{
|
||||||
uri: null,
|
uri: null,
|
||||||
match: null
|
match: null,
|
||||||
|
matchValue: null
|
||||||
}]
|
}]
|
||||||
},
|
},
|
||||||
identity: {},
|
identity: {},
|
||||||
@ -35,8 +36,6 @@ angular
|
|||||||
angular.extend($scope.cipher, $stateParams.cipher);
|
angular.extend($scope.cipher, $stateParams.cipher);
|
||||||
}
|
}
|
||||||
|
|
||||||
setUriMatchValues();
|
|
||||||
|
|
||||||
$timeout(function () {
|
$timeout(function () {
|
||||||
popupUtilsService.initListSectionItemListeners(document, angular);
|
popupUtilsService.initListSectionItemListeners(document, angular);
|
||||||
|
|
||||||
@ -128,6 +127,7 @@ angular
|
|||||||
$scope.cipher.login.uris.push({
|
$scope.cipher.login.uris.push({
|
||||||
uri: null,
|
uri: null,
|
||||||
match: null,
|
match: null,
|
||||||
|
matchValue: null
|
||||||
});
|
});
|
||||||
|
|
||||||
$timeout(function () {
|
$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({
|
$scope.cipher.login.uris.push({
|
||||||
uri: null,
|
uri: null,
|
||||||
match: null,
|
match: null,
|
||||||
|
matchValue: null
|
||||||
});
|
});
|
||||||
|
|
||||||
$timeout(function () {
|
$timeout(function () {
|
||||||
|
Loading…
Reference in New Issue
Block a user