mirror of
https://github.com/bitwarden/web
synced 2025-12-27 21:53:29 +00:00
19 lines
680 B
JavaScript
19 lines
680 B
JavaScript
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');
|
|
};
|
|
});
|