mirror of
https://github.com/Kopano-dev/kopano-ol-extension.git
synced 2023-10-10 13:37:40 +02:00
Permission label is now hidden for shared folders when permissions are not yet known.
This commit is contained in:
parent
00cba3d9e7
commit
e0356b0321
@ -428,7 +428,7 @@ namespace Acacia.Features.SharedFolders
|
|||||||
// Permissions shown if all are the same
|
// Permissions shown if all are the same
|
||||||
if (_optionPermissionNodes.Count > 0)
|
if (_optionPermissionNodes.Count > 0)
|
||||||
{
|
{
|
||||||
Permission permissions = _optionPermissionNodes.First().SharedFolder.Permissions;
|
Permission? permissions = _optionPermissionNodes.First().SharedFolder.Permissions;
|
||||||
if (_optionPermissionNodes.All(x => x.SharedFolder.Permissions == permissions))
|
if (_optionPermissionNodes.All(x => x.SharedFolder.Permissions == permissions))
|
||||||
OptionPermissions = permissions;
|
OptionPermissions = permissions;
|
||||||
}
|
}
|
||||||
|
@ -128,11 +128,15 @@ namespace Acacia.ZPush.API.SharedFolders
|
|||||||
public GABUser Store { get { return new GABUser(_data.store); } }
|
public GABUser Store { get { return new GABUser(_data.store); } }
|
||||||
public BackendId BackendId { get { return _data.folderid; } }
|
public BackendId BackendId { get { return _data.folderid; } }
|
||||||
public SyncId SyncId { get { return _data.syncfolderid; } }
|
public SyncId SyncId { get { return _data.syncfolderid; } }
|
||||||
|
public bool IsSynced { get { return SyncId != null; } }
|
||||||
|
|
||||||
public Permission Permissions
|
public Permission? Permissions
|
||||||
{
|
{
|
||||||
get
|
get
|
||||||
{
|
{
|
||||||
|
if (!IsSynced)
|
||||||
|
return null;
|
||||||
|
|
||||||
Permission p = Permission.None;
|
Permission p = Permission.None;
|
||||||
if (_data.readable)
|
if (_data.readable)
|
||||||
p |= Permission.Read;
|
p |= Permission.Read;
|
||||||
|
Loading…
Reference in New Issue
Block a user