user: remove make local feature

we discussed a bit on what this does and it's confusing as it stands:

* Use case of this is lost in the realms of time
* Possible guess by is that it was to move users of different Cloudron to a central cloudron
* Currently, the design is a bit flawed because the make user local button doesn’t pin the user. The state is lost in next synchronization.
* Maybe, one should use export/import user for this use case
* Let’s disable this button for now, feature is not complete.
This commit is contained in:
Girish Ramakrishnan
2024-01-13 11:00:43 +01:00
parent 33a97d0e50
commit 2ca94f3159
15 changed files with 132 additions and 198 deletions

View File

@@ -717,32 +717,6 @@ angular.module('Application').controller('UsersController', ['$scope', '$locatio
}
};
$scope.makeLocal = {
busy: false,
user: null,
show: function (user) {
$scope.makeLocal.busy = false;
$scope.makeLocal.user = user;
$('#makeLocalModal').modal('show');
},
submit: function () {
$scope.makeLocal.busy = false;
Client.makeUserLocal($scope.makeLocal.user.id, function (error) {
if (error) return console.error('Failed to make user local.', error);
$scope.makeLocal.busy = false;
refreshUsers();
$('#makeLocalModal').modal('hide');
});
}
};
$scope.invitation = {
busy: false,
inviteLink: '',