Prune
This commit is contained in:
@@ -1246,7 +1246,7 @@ const ManagePublicShareOptions: React.FC<ManagePublicShareOptionsProps> = ({
|
||||
galleryContext.setBlockingLoad(true);
|
||||
await deleteShareURL(collection.id);
|
||||
setPublicURL(undefined);
|
||||
galleryContext.syncWithRemote(true);
|
||||
void onRemotePull({ silent: true });
|
||||
onClose();
|
||||
} catch (e) {
|
||||
log.error("Failed to remove public link", e);
|
||||
|
||||
@@ -131,7 +131,6 @@ import { getSelectedFiles, handleFileOp, type FileOp } from "utils/file";
|
||||
|
||||
const defaultGalleryContext: GalleryContextType = {
|
||||
setActiveCollectionID: () => null,
|
||||
syncWithRemote: () => null,
|
||||
setBlockingLoad: () => null,
|
||||
photoListHeader: null,
|
||||
user: null,
|
||||
@@ -889,7 +888,6 @@ const Page: React.FC = () => {
|
||||
value={{
|
||||
...defaultGalleryContext,
|
||||
setActiveCollectionID: handleShowCollectionSummary,
|
||||
syncWithRemote: (silent) => remotePull({ silent }),
|
||||
setBlockingLoad,
|
||||
photoListHeader,
|
||||
user,
|
||||
|
||||
@@ -40,7 +40,6 @@ export interface MergedSourceURL {
|
||||
|
||||
export interface GalleryContextType {
|
||||
setActiveCollectionID: (collectionID: number) => void;
|
||||
syncWithRemote: (silent?: boolean) => Promise<void>;
|
||||
setBlockingLoad: (value: boolean) => void;
|
||||
photoListHeader: TimeStampListItem;
|
||||
user: User;
|
||||
|
||||
Reference in New Issue
Block a user