mirror of
https://gitlab.com/nkming2/nc-photos.git
synced 2025-02-08 18:28:53 +01:00
Fix "fix share" button showing incorrectly
This commit is contained in:
parent
bc2767be46
commit
5a94a27db1
1 changed files with 3 additions and 1 deletions
|
@ -68,7 +68,9 @@ class _AppBar extends StatelessWidget {
|
||||||
),
|
),
|
||||||
],
|
],
|
||||||
if (state.collection.contentProvider
|
if (state.collection.contentProvider
|
||||||
is CollectionAlbumProvider)
|
is CollectionAlbumProvider &&
|
||||||
|
CollectionAdapter.of(c, bloc.account, state.collection)
|
||||||
|
.isPermitted(CollectionCapability.share))
|
||||||
PopupMenuItem(
|
PopupMenuItem(
|
||||||
value: _MenuOption.albumFixShare,
|
value: _MenuOption.albumFixShare,
|
||||||
child: Text(L10n.global().fixSharesTooltip),
|
child: Text(L10n.global().fixSharesTooltip),
|
||||||
|
|
Loading…
Reference in a new issue