Minor code consistency changes, no functional changes

This commit is contained in:
Deon George 2025-07-03 09:21:03 +08:00
parent f1316d698d
commit 305ef0f5a3
3 changed files with 8 additions and 13 deletions

View File

@ -206,7 +206,7 @@ class HomeController extends Controller
}
return Redirect::to('/')
->with('success',[sprintf('%s: %s',__('Deleted'),$dn)]);
->with('success',sprintf('%s: %s',__('Deleted'),$dn));
}
public function entry_export(Request $request,string $id): \Illuminate\View\View
@ -298,7 +298,7 @@ class HomeController extends Controller
$request->get('_userpassword_hash'));
if (! $o->getDirty())
return back()
return Redirect::back()
->withInput()
->with('note',__('No attributes changed'));
@ -315,7 +315,7 @@ class HomeController extends Controller
$o = config('server')->fetch($from_dn);
if (! $o)
return back()
return Redirect::back()
->withInput()
->with('note',__('DN doesnt exist'));
@ -351,7 +351,7 @@ class HomeController extends Controller
$o->{$key} = array_filter($value);
if (! $dirty=$o->getDirty())
return back()
return Redirect::back()
->withInput()
->with('note',__('No attributes changed'));

View File

@ -1,11 +1,5 @@
@if(session()->has('success'))
<div class="alert alert-success">
<h4 class="alert-heading"><i class="fas fa-fw fa-thumbs-up"></i> Success!</h4>
<hr>
<ul class="square">
@foreach(session()->get('success') as $item)
<li>{{ $item }}</li>
@endforeach
</ul>
<div class="alert alert-success p-2">
<p class="m-0"><i class="fas fa-fw fa-thumbs-up"></i> {{ session()->pull('success') }}</p>
</div>
@endif

View File

@ -51,9 +51,10 @@
</div>
@endif
<x-success/>
<x-updated/>
<x-note/>
<x-error/>
<x-updated/>
<x-failed/>
@endsection