@@ -18,6 +18,7 @@ import LinearProgress from "@mui/material/LinearProgress";
1818import FolderIcon from "@mui/icons-material/Folder" ;
1919import StarBorderIcon from "@mui/icons-material/StarBorder" ;
2020import StarIcon from "@mui/icons-material/Star" ;
21+ import BusinessIcon from "@mui/icons-material/Business" ;
2122import { getIconUrlByName } from "lazy-icons" ;
2223import { useDomRect } from "powerhooks/useDomRect" ;
2324import { parseS3Uri , stringifyS3Uri , type S3Uri } from "core/tools/S3Uri" ;
@@ -874,7 +875,11 @@ export function S3UriBar(props: S3UriBarProps) {
874875 ? [ ]
875876 : displayKeyCrumbItems . slice ( firstPublicKeyCrumbIndex ) ;
876877 const isKeyGroupSplitByPublicPrefix = publicKeyCrumbItems . length > 0 ;
877- const bookmarkIcon = isBookmarked ? StarIcon : StarBorderIcon ;
878+ const bookmarkIcon = isBookmarked
879+ ? onToggleBookmark === undefined
880+ ? BusinessIcon
881+ : StarIcon
882+ : StarBorderIcon ;
878883 const renderPublicMarker = ( isPublicStart : boolean ) =>
879884 isPublicStart ? (
880885 < span className = { classes . publicMarker } title = { t ( "public" ) } aria-hidden = "true" >
@@ -1388,21 +1393,21 @@ export function S3UriBar(props: S3UriBarProps) {
13881393 { ! isUndefinedPrefixMode && ( onToggleBookmark || isBookmarked ) && (
13891394 < Tooltip
13901395 title = {
1391- onToggleBookmark
1392- ? isBookmarked
1393- ? t ( "delete from bookmarks " )
1394- : t ( "add to bookmarks" )
1395- : t ( "bookmarked " )
1396+ isBookmarked
1397+ ? onToggleBookmark === undefined
1398+ ? t ( "pinned storage location " )
1399+ : t ( "delete from bookmarks" )
1400+ : t ( "add to bookmarks " )
13961401 }
13971402 >
13981403 < div data-s3-uri-ignore-edit = "true" >
13991404 < IconButton
14001405 aria-label = {
1401- onToggleBookmark
1402- ? isBookmarked
1403- ? t ( "delete from bookmarks " )
1404- : t ( "add to bookmarks" )
1405- : t ( "bookmarked " )
1406+ isBookmarked
1407+ ? onToggleBookmark === undefined
1408+ ? t ( "pinned storage location " )
1409+ : t ( "delete from bookmarks" )
1410+ : t ( "add to bookmarks " )
14061411 }
14071412 icon = { bookmarkIcon }
14081413 size = "default"
@@ -2013,6 +2018,7 @@ const { i18n } = declareComponentKeys<
20132018 | { K : "copied path" ; P : { s3Uri : string } ; R : string }
20142019 | "add to bookmarks"
20152020 | "delete from bookmarks"
2021+ | "pinned storage location"
20162022 | "bookmarked"
20172023 | "edit s3 uri"
20182024 | "prefix"
0 commit comments