From 21f6c3940595a8863f699a7b8bdf0b4a4993c29b Mon Sep 17 00:00:00 2001 From: Muammer Top Date: Thu, 1 Oct 2020 11:04:04 +0300 Subject: [PATCH] =?UTF-8?q?user=20profile=20design=20pyro'ya=20aktar=C4=B1?= =?UTF-8?q?lmas=C4=B1=20edited?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../profile-module/resources/views/profile/detail.twig | 3 +-- .../profile-module/src/ProfileModuleServiceProvider.php | 5 ++++- 2 files changed, 5 insertions(+), 3 deletions(-) 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',