mirror of
https://github.com/vitodeploy/vito.git
synced 2025-07-04 23:42:34 +00:00
cleanup migration to filament
This commit is contained in:
@ -18,7 +18,7 @@ class ProfileInformation extends Widget implements HasForms
|
||||
|
||||
protected static bool $isLazy = false;
|
||||
|
||||
protected static string $view = 'web.components.form';
|
||||
protected static string $view = 'components.form';
|
||||
|
||||
public string $name;
|
||||
|
||||
|
@ -26,7 +26,7 @@ class TwoFactor extends Widget implements HasForms, HasInfolists
|
||||
|
||||
protected static bool $isLazy = false;
|
||||
|
||||
protected static string $view = 'web.components.infolist';
|
||||
protected static string $view = 'components.infolist';
|
||||
|
||||
public bool $enabled = false;
|
||||
|
||||
@ -52,7 +52,7 @@ public function infolist(Infolist $infolist): Infolist
|
||||
->visible(! $this->enabled),
|
||||
ViewEntry::make('qr_code')
|
||||
->hiddenLabel()
|
||||
->view('web.components.container', [
|
||||
->view('components.container', [
|
||||
'content' => $this->enabled ? auth()->user()->twoFactorQrCodeSvg() : null,
|
||||
])
|
||||
->visible($this->enabled && $this->showCodes),
|
||||
@ -69,7 +69,7 @@ public function infolist(Infolist $infolist): Infolist
|
||||
ViewEntry::make('recovery_codes')
|
||||
->hiddenLabel()
|
||||
->extraAttributes(['class' => 'rounded-lg border border-gray-100 p-2 dark:border-gray-700'])
|
||||
->view('web.components.container', [
|
||||
->view('components.container', [
|
||||
'content' => $this->enabled ? implode('</br>', json_decode(decrypt(auth()->user()->two_factor_recovery_codes), true)) : null,
|
||||
])
|
||||
->visible($this->enabled),
|
||||
|
@ -17,7 +17,7 @@ class UpdatePassword extends Widget implements HasForms
|
||||
|
||||
protected static bool $isLazy = false;
|
||||
|
||||
protected static string $view = 'web.components.form';
|
||||
protected static string $view = 'components.form';
|
||||
|
||||
public string $current_password = '';
|
||||
|
||||
|
Reference in New Issue
Block a user