Skip to content

Commit

Permalink
#263 Remoe copy password button
Browse files Browse the repository at this point in the history
  • Loading branch information
nadouani committed Sep 7, 2017
1 parent a9c0980 commit f36b141
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 8 deletions.
4 changes: 0 additions & 4 deletions ui/app/scripts/controllers/admin/AdminUsersCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,10 +106,6 @@
});
};

$scope.copyPwd = function(password) {
clipboard.copyText(password);
};

$scope.showUserDialog = function(user) {
var modalInstance = $uibModal.open({
templateUrl: 'views/partials/admin/user-dialog.html',
Expand Down
5 changes: 1 addition & 4 deletions ui/app/views/partials/admin/users.html
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ <h3 class="box-title">User management</h3>
<form ng-show="showPwdForm[user]" ng-submit="setPassword(user, newValue); showPwdForm[user] = false;">
<div class="input-group input-group-sm">
<input autofocus="autofocus" class="form-control input-sm" ng-model="newValue" type="password">
<span class="input-group-btn">
<button class="btn btn-primary" type="button" ng-click="copyPwd(newValue)" uib-tooltip="Copy password">
<i class="fa fa-copy"></i>
</button>
<span class="input-group-btn">
<button class="btn btn-default" type="button" ng-click="showPwdForm[user] = false">
<i class="fa fa-times text-danger"></i>
</button>
Expand Down

0 comments on commit f36b141

Please sign in to comment.