feat: platform definition added for additional settings components (#3503)
This commit is contained in:
@@ -599,6 +599,7 @@
|
|||||||
"use_experimental_url_bar": "Use experimental URL bar with environment highlighting",
|
"use_experimental_url_bar": "Use experimental URL bar with environment highlighting",
|
||||||
"user": "User",
|
"user": "User",
|
||||||
"verified_email": "Verified email",
|
"verified_email": "Verified email",
|
||||||
|
"additional": "Additional Settings",
|
||||||
"verify_email": "Verify email"
|
"verify_email": "Verify email"
|
||||||
},
|
},
|
||||||
"shortcodes": {
|
"shortcodes": {
|
||||||
|
|||||||
@@ -143,8 +143,6 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
<ProfileUserDelete />
|
|
||||||
|
|
||||||
<section class="p-4">
|
<section class="p-4">
|
||||||
<h4 class="font-semibold text-secondaryDark">
|
<h4 class="font-semibold text-secondaryDark">
|
||||||
{{ t("settings.sync") }}
|
{{ t("settings.sync") }}
|
||||||
@@ -180,7 +178,18 @@
|
|||||||
</div>
|
</div>
|
||||||
</section>
|
</section>
|
||||||
|
|
||||||
|
<template v-if="platform.ui?.additionalProfileSections?.length">
|
||||||
|
<template
|
||||||
|
v-for="item in platform.ui?.additionalProfileSections"
|
||||||
|
:key="item.id"
|
||||||
|
>
|
||||||
|
<component :is="item" />
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
|
|
||||||
<ProfileShortcodes />
|
<ProfileShortcodes />
|
||||||
|
|
||||||
|
<ProfileUserDelete />
|
||||||
</div>
|
</div>
|
||||||
</HoppSmartTab>
|
</HoppSmartTab>
|
||||||
<HoppSmartTab :id="'teams'" :label="t('team.title')">
|
<HoppSmartTab :id="'teams'" :label="t('team.title')">
|
||||||
|
|||||||
@@ -106,6 +106,15 @@
|
|||||||
</section>
|
</section>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<template v-if="platform.ui?.additionalSettingsSections?.length">
|
||||||
|
<template
|
||||||
|
v-for="item in platform.ui?.additionalSettingsSections"
|
||||||
|
:key="item.id"
|
||||||
|
>
|
||||||
|
<component :is="item" />
|
||||||
|
</template>
|
||||||
|
</template>
|
||||||
</div>
|
</div>
|
||||||
<HoppSmartConfirmModal
|
<HoppSmartConfirmModal
|
||||||
:show="confirmRemove"
|
:show="confirmRemove"
|
||||||
|
|||||||
@@ -38,4 +38,14 @@ export type UIPlatformDef = {
|
|||||||
* Additional Support Options menu items shown in the app header
|
* Additional Support Options menu items shown in the app header
|
||||||
*/
|
*/
|
||||||
additionalSupportOptionsMenuItems?: HoppSupportOptionsMenuItem[]
|
additionalSupportOptionsMenuItems?: HoppSupportOptionsMenuItem[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Additional Settings Section components in the settings page
|
||||||
|
*/
|
||||||
|
additionalSettingsSections?: Component[]
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Additional profile Section components in the profile page
|
||||||
|
*/
|
||||||
|
additionalProfileSections?: Component[]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user