mirror of
https://github.com/spacedriveapp/spacedrive.git
synced 2026-10-13 10:03:29 -04:00
Replace Location.local_path with path (#571)
* replace Location.local_path with path * Using more references to avoid unneeded moves and removing unneeded errors variants * remove unnecessary stuff * location id checks --------- Co-authored-by: Ericson Soares <ericson.ds999@gmail.com>
This commit is contained in:
1 parent
c7dbc784cd
commit
fd39dc3a3d
28 files changed
+290
-356
No files matched your search
@@ -108,7 +108,7 @@ export const Inspector = ({ data, context, ...elementProps }: Props) => {
|
||||
{context?.type == 'Location' && data?.type === 'Path' && (
|
||||
<MetaContainer>
|
||||
<MetaTitle>URI</MetaTitle>
|
||||
<MetaValue>{`${context.local_path}/${data.item.materialized_path}`}</MetaValue>
|
||||
<MetaValue>{`${context.path}/${data.item.materialized_path}`}</MetaValue>
|
||||
</MetaContainer>
|
||||
)}
|
||||
<Divider />
|
||||
|
||||
@@ -36,7 +36,7 @@ export default function LocationListItem({ location }: LocationListItemProps) {
|
||||
<h1 className="pt-0.5 text-sm font-semibold">{location.name}</h1>
|
||||
<p className="text-ink-dull mt-0.5 select-text truncate text-sm">
|
||||
<span className="bg-app-selected mr-1 rounded py-[1px] px-1">{location.node.name}</span>
|
||||
{location.local_path}
|
||||
{location.path}
|
||||
</p>
|
||||
</div>
|
||||
<div className="flex grow" />
|
||||
|
||||
Reference in new issue
Block a user