fixes
This commit is contained in:
parent
f187040b7e
commit
a6f9e5f0af
@ -96,8 +96,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
function copyToClipboard(text) {
|
function copyToClipboard(text) {
|
||||||
navigator.clipboard.writeText(text);
|
navigator?.clipboard?.writeText(text) && Livewire.emit('success', 'Copied to clipboard.');
|
||||||
Livewire.emit('success', 'Copied to clipboard.');
|
|
||||||
}
|
}
|
||||||
|
|
||||||
Livewire.on('reloadWindow', (timeout) => {
|
Livewire.on('reloadWindow', (timeout) => {
|
||||||
|
@ -2,16 +2,20 @@
|
|||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-2">
|
||||||
<h1>Resources</h1>
|
<h1>Resources</h1>
|
||||||
<a class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
|
|
||||||
href="{{ route('project.clone', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
|
|
||||||
Clone
|
|
||||||
</a>
|
|
||||||
@if ($environment->isEmpty())
|
@if ($environment->isEmpty())
|
||||||
|
<a class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
|
||||||
|
href="{{ route('project.clone', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
|
||||||
|
Clone
|
||||||
|
</a>
|
||||||
<livewire:project.delete-environment :environment_id="$environment->id" />
|
<livewire:project.delete-environment :environment_id="$environment->id" />
|
||||||
@else
|
@else
|
||||||
<a href="{{ route('project.resources.new', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
|
<a href="{{ route('project.resources.new', ['project_uuid' => request()->route('project_uuid'), 'environment_name' => request()->route('environment_name')]) }} "
|
||||||
class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation">+
|
class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation">+
|
||||||
New</a>
|
New</a>
|
||||||
|
<a class="font-normal text-white normal-case border-none rounded hover:no-underline btn btn-primary btn-sm no-animation"
|
||||||
|
href="{{ route('project.clone', ['project_uuid' => data_get($project, 'uuid'), 'environment_name' => request()->route('environment_name')]) }}">
|
||||||
|
Clone
|
||||||
|
</a>
|
||||||
@endif
|
@endif
|
||||||
</div>
|
</div>
|
||||||
<nav class="flex pt-2 pb-10">
|
<nav class="flex pt-2 pb-10">
|
||||||
|
Loading…
x
Reference in New Issue
Block a user