mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 17:24:10 +00:00
Split CompanyController and introduce standalone User Settings page
Backend: - Extract user profile methods (show, update, uploadAvatar) from CompanyController into new UserProfileController - CompanyController now only handles company concerns (updateCompany, uploadCompanyLogo) - Remove Account Settings from setting_menu config Frontend: - New /admin/user-settings page with 3 tabs: General, Profile Photo, Security (password change) - User dropdown now links to /admin/user-settings instead of /admin/settings/account-settings - Settings sidebar defaults to Company Information as first item - Remove old monolithic AccountSetting.vue
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
<BaseBreadcrumbItem :title="$t('general.home')" to="/admin/dashboard" />
|
||||
<BaseBreadcrumbItem
|
||||
:title="$t('settings.setting', 2)"
|
||||
to="/admin/settings/account-settings"
|
||||
to="/admin/settings/company-info"
|
||||
active
|
||||
/>
|
||||
</BaseBreadcrumb>
|
||||
@@ -75,7 +75,7 @@ const dropdownMenuItems = computed(() => {
|
||||
|
||||
watchEffect(() => {
|
||||
if (route.path === '/admin/settings') {
|
||||
router.push('/admin/settings/account-settings')
|
||||
router.push('/admin/settings/company-info')
|
||||
}
|
||||
|
||||
const item = dropdownMenuItems.value.find((item) => {
|
||||
|
||||
Reference in New Issue
Block a user