|
|
@@ -27,6 +27,7 @@ interface ServiceProps {
|
|
|
status?: PorterAppVersionStatus[];
|
|
|
maxCPU: number;
|
|
|
maxRAM: number;
|
|
|
+ namespace: string;
|
|
|
}
|
|
|
|
|
|
const ServiceContainer: React.FC<ServiceProps> = ({
|
|
|
@@ -37,6 +38,7 @@ const ServiceContainer: React.FC<ServiceProps> = ({
|
|
|
status,
|
|
|
maxCPU,
|
|
|
maxRAM,
|
|
|
+ namespace,
|
|
|
}) => {
|
|
|
const [height, setHeight] = useState<Height>(service.expanded ? "auto" : 0);
|
|
|
|
|
|
@@ -63,7 +65,7 @@ const ServiceContainer: React.FC<ServiceProps> = ({
|
|
|
const renderTabs = (service: ClientService) => {
|
|
|
return match(service)
|
|
|
.with({ config: { type: "web" } }, (svc) => (
|
|
|
- <WebTabs index={index} service={svc} maxCPU={maxCPU} maxRAM={maxRAM} />
|
|
|
+ <WebTabs index={index} service={svc} maxCPU={maxCPU} maxRAM={maxRAM} namespace={namespace} />
|
|
|
))
|
|
|
.with({ config: { type: "worker" } }, (svc) => (
|
|
|
<WorkerTabs
|