fix: ui
This commit is contained in:
@@ -80,7 +80,9 @@ class ExecuteContainerCommand extends Component
|
|||||||
$this->resource = $resource;
|
$this->resource = $resource;
|
||||||
$this->server = $this->resource->destination->server;
|
$this->server = $this->resource->destination->server;
|
||||||
$this->container = $this->resource->uuid;
|
$this->container = $this->resource->uuid;
|
||||||
|
if (data_get($this,'resource.status') == 'running') {
|
||||||
$this->containers->push($this->container);
|
$this->containers->push($this->container);
|
||||||
|
}
|
||||||
} else if (data_get($this->parameters, 'service_uuid')) {
|
} else if (data_get($this->parameters, 'service_uuid')) {
|
||||||
$this->type = 'service';
|
$this->type = 'service';
|
||||||
$this->resource = Service::where('uuid', $this->parameters['service_uuid'])->firstOrFail();
|
$this->resource = Service::where('uuid', $this->parameters['service_uuid'])->firstOrFail();
|
||||||
|
|||||||
@@ -7,6 +7,8 @@
|
|||||||
@elseif ($type === 'database')
|
@elseif ($type === 'database')
|
||||||
<h1>Execute Command</h1>
|
<h1>Execute Command</h1>
|
||||||
<livewire:project.database.heading :database="$resource" />
|
<livewire:project.database.heading :database="$resource" />
|
||||||
|
<h2 class="pt-4">Command Details</h2>
|
||||||
|
<div class="pb-2">Run any one-shot command inside a container.</div>
|
||||||
@elseif ($type === 'service')
|
@elseif ($type === 'service')
|
||||||
<h2>Execute Command</h2>
|
<h2>Execute Command</h2>
|
||||||
@endif
|
@endif
|
||||||
|
|||||||
Reference in New Issue
Block a user