Enable sharing for fav collection
This commit is contained in:
@@ -312,6 +312,7 @@ extension GalleryAppBarExtn on GalleryType {
|
||||
bool isSharable() {
|
||||
if (this == GalleryType.ownedCollection ||
|
||||
this == GalleryType.quickLink ||
|
||||
this == GalleryType.favorite ||
|
||||
this == GalleryType.hiddenOwnedCollection ||
|
||||
this == GalleryType.sharedCollection) {
|
||||
return true;
|
||||
|
||||
@@ -817,9 +817,10 @@ class _GalleryAppBarWidgetState extends State<GalleryAppBarWidget> {
|
||||
(galleryType != GalleryType.ownedCollection &&
|
||||
galleryType != GalleryType.sharedCollection &&
|
||||
galleryType != GalleryType.hiddenOwnedCollection &&
|
||||
galleryType != GalleryType.favorite &&
|
||||
!isQuickLink)) {
|
||||
throw Exception(
|
||||
"Cannot share empty collection of type $galleryType",
|
||||
"Cannot share collection of type $galleryType",
|
||||
);
|
||||
}
|
||||
if (Configuration.instance.getUserID() == widget.collection!.owner.id) {
|
||||
|
||||
Reference in New Issue
Block a user