diff --git a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig index 23b393e5a..52368270e 100644 --- a/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig +++ b/addons/default/visiosoft/profile-module/resources/views/profile/detail.twig @@ -90,8 +90,7 @@

{{ trans('visiosoft.module.profile::message.disable_account') }}

- + {{ trans("visiosoft.module.profile::field.disable_account.name") }} diff --git a/addons/default/visiosoft/profile-module/src/ProfileModuleServiceProvider.php b/addons/default/visiosoft/profile-module/src/ProfileModuleServiceProvider.php index ef2be8ab7..2c45177fe 100644 --- a/addons/default/visiosoft/profile-module/src/ProfileModuleServiceProvider.php +++ b/addons/default/visiosoft/profile-module/src/ProfileModuleServiceProvider.php @@ -94,7 +94,10 @@ class ProfileModuleServiceProvider extends AddonServiceProvider 'profile/class/status/{id},{type}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@statusAds', 'profile/class/extendTime/{id},{type}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@extendAds', 'profile/message/show/{id}' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@showMessage', - 'profile/closeAccount' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@disableAccount', + 'profile/close-account' => [ + 'as' => 'visiosoft.module.profile::profile_close_account', + 'uses' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@disableAccount' + ], 'profile/notification' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@notification', 'ajax/update-user-info' => 'Visiosoft\ProfileModule\Http\Controller\MyProfileController@updateAjaxProfile',