Merge pull request #3427 from jtschladen/fix-more-button-notification
Fix "more" button on notification edit dialog
This commit is contained in:
commit
a153781335
@ -49,6 +49,7 @@ angular.module('lemur')
|
||||
});
|
||||
});
|
||||
NotificationService.getCertificates(notification);
|
||||
$scope.page = 1;
|
||||
});
|
||||
|
||||
$scope.save = function (notification) {
|
||||
@ -76,5 +77,10 @@ angular.module('lemur')
|
||||
$uibModalInstance.dismiss('cancel');
|
||||
};
|
||||
|
||||
$scope.loadMoreCertificates = function () {
|
||||
$scope.page++;
|
||||
NotificationService.loadMoreCertificates($scope.notification, $scope.page);
|
||||
};
|
||||
|
||||
$scope.certificateService = CertificateService;
|
||||
});
|
||||
|
@ -42,7 +42,7 @@ angular.module('lemur')
|
||||
NotificationService.loadMoreCertificates = function (notification, page) {
|
||||
notification.getList('certificates', {page: page, showExpired: 0}).then(function (certificates) {
|
||||
_.each(certificates, function (certificate) {
|
||||
notification.roles.push(certificate);
|
||||
notification.certificates.push(certificate);
|
||||
});
|
||||
});
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user