mirror of
https://github.com/bitwarden/browser
synced 2025-12-19 01:33:33 +00:00
Add/edit equivalent domains
This commit is contained in:
@@ -0,0 +1,18 @@
|
||||
angular
|
||||
.module('bit.vault')
|
||||
|
||||
.controller('settingsAddEditEquivalentDomainController', function ($scope, $uibModalInstance, $analytics, domainIndex, domains) {
|
||||
$analytics.eventTrack('settingsAddEditEquivalentDomainController', { category: 'Modal' });
|
||||
|
||||
$scope.domains = domains;
|
||||
$scope.index = domainIndex;
|
||||
|
||||
$scope.submit = function (form) {
|
||||
$analytics.eventTrack((domainIndex ? 'Edited' : 'Added') + ' Equivalent Domain');
|
||||
$uibModalInstance.close({ domains: $scope.domains, index: domainIndex });
|
||||
};
|
||||
|
||||
$scope.close = function () {
|
||||
$uibModalInstance.dismiss('close');
|
||||
};
|
||||
});
|
||||
Reference in New Issue
Block a user