mirror of
https://github.com/InvoiceShelf/InvoiceShelf.git
synced 2026-04-15 09:14:08 +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:
@@ -0,0 +1,47 @@
|
||||
<template>
|
||||
<BasePage>
|
||||
<BasePageHeader :title="$t('settings.account_settings.account_settings')">
|
||||
<template #actions>
|
||||
<router-link to="/admin/settings">
|
||||
<BaseButton variant="primary-outline">
|
||||
<template #left="slotProps">
|
||||
<BaseIcon name="CogIcon" :class="slotProps.class" />
|
||||
</template>
|
||||
{{ $t('navigation.settings') }}
|
||||
</BaseButton>
|
||||
</router-link>
|
||||
</template>
|
||||
</BasePageHeader>
|
||||
|
||||
<BaseCard container-class="px-4 py-5 sm:px-8 sm:py-2">
|
||||
<BaseTabGroup>
|
||||
<BaseTab
|
||||
tab-panel-container="py-4 mt-px"
|
||||
:title="$t('settings.account_settings.general')"
|
||||
>
|
||||
<GeneralTab />
|
||||
</BaseTab>
|
||||
|
||||
<BaseTab
|
||||
tab-panel-container="py-4 mt-px"
|
||||
:title="$t('settings.account_settings.profile_picture')"
|
||||
>
|
||||
<ProfilePhotoTab />
|
||||
</BaseTab>
|
||||
|
||||
<BaseTab
|
||||
tab-panel-container="py-4 mt-px"
|
||||
:title="$t('settings.account_settings.security')"
|
||||
>
|
||||
<SecurityTab />
|
||||
</BaseTab>
|
||||
</BaseTabGroup>
|
||||
</BaseCard>
|
||||
</BasePage>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import GeneralTab from './GeneralTab.vue'
|
||||
import ProfilePhotoTab from './ProfilePhotoTab.vue'
|
||||
import SecurityTab from './SecurityTab.vue'
|
||||
</script>
|
||||
Reference in New Issue
Block a user