Merge pull request #2667 from brkcvn/show-loading

Added hidden loading control for Show pages
This commit is contained in:
Burak Civan 2022-10-13 17:19:48 +03:00 committed by GitHub
commit d08f2125cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 24 additions and 2 deletions

View File

@ -0,0 +1,21 @@
<?php
namespace App\View\Components\Show;
use App\Abstracts\View\Component;
class Right extends Component
{
public $disableLoading = false;
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|string
*/
public function render()
{
return view('components.show.content.right');
}
}

View File

@ -1,5 +1,6 @@
<div class="relative lg:w-8/12 ltr:lg:pl-8 rtl:lg:pr-8">
<x-loading.absolute />
@if (! isset($attributes['disable-loading']))
<x-loading.absolute />
@endif
{!! $slot !!}
</div>