Show subscription setup dialog for more users

This commit is contained in:
Johannes Zellner
2020-06-18 12:57:12 +02:00
parent 75b2c7236a
commit b1d956f7bf
2 changed files with 24 additions and 1 deletions

View File

@@ -102,6 +102,11 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
role: 'user',
show: function () {
if ($scope.config.features.userMaxCount && $scope.config.features.userMaxCount <= $scope.allUsers.length) {
$('#subscriptionRequiredModal').modal('show');
return;
}
$scope.useradd.error = {};
$scope.useradd.email = '';
$scope.useradd.username = '';