mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-12-02 05:54:44 +00:00
feat(storage): add archive storage support for assets
This commit is contained in:
@@ -213,7 +213,12 @@ export const ImageViewer = React.forwardRef<MediaController, FileViewerProps>(
|
||||
onZoomOut={() => handleZoom(0.8)}
|
||||
onFit={handleFit}
|
||||
onDownload={handleDownload}
|
||||
canDownload={!!file.media?.original?.key}
|
||||
canDownload={
|
||||
!!file.media?.original?.key &&
|
||||
file.status !== 'archived' &&
|
||||
file.status !== 'archiving' &&
|
||||
file.status !== 'restoring'
|
||||
}
|
||||
onCopy={handleCopy}
|
||||
copied={copied}
|
||||
canCopy={!!bestUrl}
|
||||
|
||||
Reference in New Issue
Block a user