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:
16
resources/scripts/admin/admin-router.js
vendored
16
resources/scripts/admin/admin-router.js
vendored
@@ -23,8 +23,8 @@ const CustomerView = () => import('@/scripts/admin/views/customers/View.vue')
|
||||
//Settings
|
||||
const SettingsIndex = () =>
|
||||
import('@/scripts/admin/views/settings/SettingsIndex.vue')
|
||||
const AccountSetting = () =>
|
||||
import('@/scripts/admin/views/settings/AccountSetting.vue')
|
||||
const UserSettingsIndex = () =>
|
||||
import('@/scripts/admin/views/user-settings/UserSettingsIndex.vue')
|
||||
const CompanyInfo = () =>
|
||||
import('@/scripts/admin/views/settings/CompanyInfoSettings.vue')
|
||||
const Preferences = () =>
|
||||
@@ -243,17 +243,19 @@ export default [
|
||||
component: PaymentView,
|
||||
},
|
||||
|
||||
// user settings
|
||||
{
|
||||
path: 'user-settings',
|
||||
name: 'user.settings',
|
||||
component: UserSettingsIndex,
|
||||
},
|
||||
|
||||
//settings
|
||||
{
|
||||
path: 'settings',
|
||||
name: 'settings',
|
||||
component: SettingsIndex,
|
||||
children: [
|
||||
{
|
||||
path: 'account-settings',
|
||||
name: 'account.settings',
|
||||
component: AccountSetting,
|
||||
},
|
||||
{
|
||||
path: 'company-info',
|
||||
name: 'company.info',
|
||||
|
||||
Reference in New Issue
Block a user