mirror of
https://github.com/bitwarden/web
synced 2025-12-11 05:43:16 +00:00
fix some linter complaints
This commit is contained in:
@@ -8,8 +8,9 @@
|
|||||||
$scope.equivalentDomains = [];
|
$scope.equivalentDomains = [];
|
||||||
|
|
||||||
apiService.settings.getDomains({}, function (response) {
|
apiService.settings.getDomains({}, function (response) {
|
||||||
|
var i;
|
||||||
if (response.EquivalentDomains) {
|
if (response.EquivalentDomains) {
|
||||||
for (var i = 0; i < response.EquivalentDomains.length; i++) {
|
for (i = 0; i < response.EquivalentDomains.length; i++) {
|
||||||
$scope.equivalentDomains.push(response.EquivalentDomains[i].join(', '));
|
$scope.equivalentDomains.push(response.EquivalentDomains[i].join(', '));
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -27,16 +28,16 @@
|
|||||||
|
|
||||||
$scope.toggleExclude = function (globalDomain) {
|
$scope.toggleExclude = function (globalDomain) {
|
||||||
globalDomain.excluded = !globalDomain.excluded;
|
globalDomain.excluded = !globalDomain.excluded;
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.customize = function (globalDomain) {
|
$scope.customize = function (globalDomain) {
|
||||||
globalDomain.excluded = true;
|
globalDomain.excluded = true;
|
||||||
$scope.equivalentDomains.push(globalDomain.domains);
|
$scope.equivalentDomains.push(globalDomain.domains);
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.delete = function (i) {
|
$scope.delete = function (i) {
|
||||||
$scope.equivalentDomains.splice(i, 1);
|
$scope.equivalentDomains.splice(i, 1);
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.addEdit = function (i) {
|
$scope.addEdit = function (i) {
|
||||||
var addEditModal = $uibModal.open({
|
var addEditModal = $uibModal.open({
|
||||||
@@ -62,7 +63,7 @@
|
|||||||
$scope.equivalentDomains.push(returnObj.domains);
|
$scope.equivalentDomains.push(returnObj.domains);
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
}
|
};
|
||||||
|
|
||||||
$scope.save = function () {
|
$scope.save = function () {
|
||||||
var request = {
|
var request = {
|
||||||
|
|||||||
Reference in New Issue
Block a user