mirror of
https://github.com/nicotsx/ironmount.git
synced 2025-12-10 12:10:51 +01:00
feat: mount volumes on startup
This commit is contained in:
@@ -17,6 +17,7 @@ import { parseError } from "~/lib/errors";
|
||||
import { HealthchecksCard } from "~/modules/details/components/healthchecks-card";
|
||||
import type { Route } from "./+types/details";
|
||||
import { cn } from "~/lib/utils";
|
||||
import { StatusDot } from "~/components/status-dot";
|
||||
|
||||
export const clientLoader = async ({ params }: Route.ClientLoaderArgs) => {
|
||||
const volume = await getVolume({ path: { name: params.name ?? "" } });
|
||||
@@ -89,9 +90,8 @@ export default function DetailsPage({ loaderData }: Route.ComponentProps) {
|
||||
<div>
|
||||
<h1 className="text-3xl font-bold mb-0 uppercase">Volume: {name}</h1>
|
||||
<div className="text-sm font-semibold mb-2 text-muted-foreground flex items-center gap-2">
|
||||
<span className="text-green-500 flex items-center gap-2">
|
||||
<WifiIcon size={16} />
|
||||
{data.status}
|
||||
<span className="flex items-center gap-2">
|
||||
<StatusDot status={data.status} /> {data.status[0].toUpperCase() + data.status.slice(1)}
|
||||
</span>
|
||||
<VolumeIcon size={14} backend={data?.config.backend} />
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user