mirror of
https://github.com/nextcloud/passman.git
synced 2025-10-30 23:36:34 +08:00
Format file
This commit is contained in:
parent
b90d6eb0c3
commit
a10c567b1f
1 changed files with 162 additions and 163 deletions
|
|
@ -9,7 +9,8 @@
|
|||
* This file is part of passman, licensed under AGPLv3
|
||||
*/
|
||||
angular.module('passmanApp')
|
||||
.controller('ShareCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', 'NotificationService', function ($scope, VaultService, CredentialService, SettingsService, $location, $routeParams, ShareService, NotificationService) {
|
||||
.controller('ShareCtrl', ['$scope', 'VaultService', 'CredentialService', 'SettingsService', '$location', '$routeParams', 'ShareService', 'NotificationService', 'SharingACL',
|
||||
function ($scope, VaultService, CredentialService, SettingsService, $location, $routeParams, ShareService, NotificationService, SharingACL) {
|
||||
$scope.active_vault = VaultService.getActiveVault();
|
||||
|
||||
$scope.tabs = [{
|
||||
|
|
@ -69,9 +70,7 @@ angular.module('passmanApp')
|
|||
amount: null
|
||||
}
|
||||
},
|
||||
credentialSharedWithUserAndGroup:[
|
||||
|
||||
],
|
||||
credentialSharedWithUserAndGroup: [],
|
||||
cypher_progress: {
|
||||
done: 0,
|
||||
total: 0
|
||||
|
|
@ -88,7 +87,7 @@ angular.module('passmanApp')
|
|||
value: '1'
|
||||
}
|
||||
];
|
||||
|
||||
console.log(SharingACL);
|
||||
$scope.inputSharedWith = [];
|
||||
$scope.selectedAccessLevel = '1';
|
||||
|
||||
|
|
@ -101,7 +100,7 @@ angular.module('passmanApp')
|
|||
$scope.inputSharedWith = [];
|
||||
if (shareWith.length > 0) {
|
||||
for (var i = 0; i < shareWith.length; i++) {
|
||||
// Avoid adding twice the same user.
|
||||
|
||||
var obj = {
|
||||
userId: shareWith[i].uid,
|
||||
displayName: shareWith[i].text,
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue