mirror of
https://github.com/shumaiOne/shumai.git
synced 2026-11-29 20:34:28 +00:00
feat(storage): add archive storage support for assets
This commit is contained in:
@@ -115,7 +115,12 @@ export function CompareControlBar({
|
||||
onZoomOut={onZoomOut}
|
||||
onFit={onFit}
|
||||
onDownload={() => onDownload()}
|
||||
canDownload={!!activeAsset?.media?.original?.key}
|
||||
canDownload={
|
||||
!!activeAsset?.media?.original?.key &&
|
||||
activeAsset.status !== 'archived' &&
|
||||
activeAsset.status !== 'archiving' &&
|
||||
activeAsset.status !== 'restoring'
|
||||
}
|
||||
fullscreen={{ isFullScreen, onToggle: onToggleFullScreen }}
|
||||
allowDownload={allowDownload}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user