Fix rendering new attributes, so that they dont render as dynamic. Fix adding new objectClasses to entries, need langtag to render the component
All checks were successful
Create Docker Image / Test Application (x86_64) (push) Successful in 28s
Create Docker Image / Build Docker Image (x86_64) (push) Successful in 1m28s
Create Docker Image / Build Docker Image (arm64) (push) Successful in 4m47s
Create Docker Image / Final Docker Image Manifest (push) Successful in 9s

This commit is contained in:
2025-04-08 22:04:48 +10:00
parent 2abc321eca
commit a7be4e00b4
6 changed files with 14 additions and 9 deletions

View File

@@ -2,6 +2,8 @@
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
use App\Classes\LDAP\Attribute as LDAPAttribute;
@@ -32,13 +34,13 @@ class Attribute extends Component
/**
* Get the view / contents that represent the component.
*
* @return \Illuminate\Contracts\View\View|\Closure|string
* @return View|string
*/
public function render()
public function render(): View|string
{
return $this->o
? $this->o
->render($this->edit,$this->old,$this->new)
->render(edit: $this->edit,old: $this->old,new: $this->new)
: $this->na;
}
}

View File

@@ -2,7 +2,6 @@
namespace App\View\Components;
use Closure;
use Illuminate\Contracts\View\View;
use Illuminate\View\Component;
@@ -30,7 +29,7 @@ class AttributeType extends Component
/**
* Get the view / contents that represent the component.
*/
public function render(): View|Closure|string
public function render(): View
{
return view('components.attribute-type')
->with('o',$this->o)