mirror of
https://github.com/ente-io/ente.git
synced 2025-08-08 07:28:26 +00:00
Reorder
This commit is contained in:
parent
54611ff256
commit
cdf9474788
@ -1,4 +1,4 @@
|
||||
import { SelectionBar } from "@/base/components/Navbar";
|
||||
import { NavbarBaseNormalFlow, SelectionBar } from "@/base/components/Navbar";
|
||||
import type { Collection } from "@/media/collection";
|
||||
import type { CollectionSelectorAttributes } from "@/new/photos/components/CollectionSelector";
|
||||
import type { GalleryBarMode } from "@/new/photos/components/gallery/reducer";
|
||||
@ -174,7 +174,7 @@ const SelectedFileOptions = ({
|
||||
};
|
||||
|
||||
return (
|
||||
<SelectionBar>
|
||||
<NavbarBaseNormalFlow>
|
||||
<FluidContainer>
|
||||
<IconButton onClick={clearSelection}>
|
||||
<CloseIcon />
|
||||
@ -417,7 +417,7 @@ const SelectedFileOptions = ({
|
||||
</>
|
||||
)}
|
||||
</Stack>
|
||||
</SelectionBar>
|
||||
</NavbarBaseNormalFlow>
|
||||
);
|
||||
};
|
||||
|
||||
|
@ -969,6 +969,44 @@ const Page: React.FC = () => {
|
||||
/>
|
||||
)}
|
||||
</NavbarBaseNormalFlow>
|
||||
{selected.count > 0 &&
|
||||
selected.collectionID === activeCollectionID && (
|
||||
<SelectedFileOptions
|
||||
handleCollectionOps={collectionOpsHelper}
|
||||
handleFileOps={fileOpsHelper}
|
||||
showCreateCollectionModal={
|
||||
showCreateCollectionModal
|
||||
}
|
||||
onOpenCollectionSelector={
|
||||
handleOpenCollectionSelector
|
||||
}
|
||||
count={selected.count}
|
||||
ownCount={selected.ownCount}
|
||||
clearSelection={clearSelection}
|
||||
barMode={barMode}
|
||||
activeCollectionID={activeCollectionID}
|
||||
selectedCollection={getSelectedCollection(
|
||||
selected.collectionID,
|
||||
collections,
|
||||
)}
|
||||
isFavoriteCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "favorites"
|
||||
}
|
||||
isUncategorizedCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "uncategorized"
|
||||
}
|
||||
isIncomingSharedCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "incomingShareCollaborator" ||
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "incomingShareViewer"
|
||||
}
|
||||
isInSearchMode={isInSearchMode}
|
||||
isInHiddenSection={barMode == "hidden-albums"}
|
||||
/>
|
||||
)}
|
||||
{isOffline && <OfflineMessage />}
|
||||
|
||||
<GalleryBarAndListHeader
|
||||
@ -1085,44 +1123,6 @@ const Page: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
)}
|
||||
{selected.count > 0 &&
|
||||
selected.collectionID === activeCollectionID && (
|
||||
<SelectedFileOptions
|
||||
handleCollectionOps={collectionOpsHelper}
|
||||
handleFileOps={fileOpsHelper}
|
||||
showCreateCollectionModal={
|
||||
showCreateCollectionModal
|
||||
}
|
||||
onOpenCollectionSelector={
|
||||
handleOpenCollectionSelector
|
||||
}
|
||||
count={selected.count}
|
||||
ownCount={selected.ownCount}
|
||||
clearSelection={clearSelection}
|
||||
barMode={barMode}
|
||||
activeCollectionID={activeCollectionID}
|
||||
selectedCollection={getSelectedCollection(
|
||||
selected.collectionID,
|
||||
collections,
|
||||
)}
|
||||
isFavoriteCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "favorites"
|
||||
}
|
||||
isUncategorizedCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "uncategorized"
|
||||
}
|
||||
isIncomingSharedCollection={
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "incomingShareCollaborator" ||
|
||||
collectionSummaries.get(activeCollectionID)
|
||||
?.type == "incomingShareViewer"
|
||||
}
|
||||
isInSearchMode={isInSearchMode}
|
||||
isInHiddenSection={barMode == "hidden-albums"}
|
||||
/>
|
||||
)}
|
||||
<Export
|
||||
{...exportVisibilityProps}
|
||||
collectionNameMap={state.allCollectionNameByID}
|
||||
|
Loading…
x
Reference in New Issue
Block a user