Create two sections in appearance

Branding and External Links
This commit is contained in:
Girish Ramakrishnan
2025-09-18 18:41:56 +02:00
parent 6e19a7e862
commit aaed5a47d7
2 changed files with 19 additions and 7 deletions

View File

@@ -689,7 +689,7 @@
} }
}, },
"branding": { "branding": {
"title": "Appearance", "title": "Branding",
"cloudronName": "Cloudron Name", "cloudronName": "Cloudron Name",
"logo": "Logo", "logo": "Logo",
"footer": { "footer": {
@@ -1834,10 +1834,10 @@
}, },
"forumUrlAction": "Need help? Ask in the forum", "forumUrlAction": "Need help? Ask in the forum",
"addApplinkDialog": { "addApplinkDialog": {
"title": "Add external app link" "title": "Add External Link"
}, },
"editApplinkDialog": { "editApplinkDialog": {
"title": "Edit App Link", "title": "Edit External Link",
"deleteAction": "Delete" "deleteAction": "Delete"
}, },
"applinks": { "applinks": {
@@ -2114,5 +2114,15 @@
}, },
"userDirectory": { "userDirectory": {
"title": "User Directory" "title": "User Directory"
},
"appearance": {
"title": "Appearance"
},
"dashboard": {
"title": "Dashboard"
},
"externallinks": {
"label": "External Links",
"description": "Add shortcuts to external services on the dashboard"
} }
} }

View File

@@ -64,7 +64,7 @@ async function onFooterSave(newFooter) {
const applinkDialog = useTemplateRef('applinkDialog'); const applinkDialog = useTemplateRef('applinkDialog');
function onAddDashboardLink() { function onAddExternalLink() {
applinkDialog.value.open(); applinkDialog.value.open();
} }
@@ -108,14 +108,16 @@ onMounted(async () => {
<SettingsItem> <SettingsItem>
<EditableField :label="$t('branding.footer.title')" helpUrl="https://docs.cloudron.io/branding/#footer" multiline :saving="savingFooter" :value="footer" :disabled="!features.branding" @save="onFooterSave"/> <EditableField :label="$t('branding.footer.title')" helpUrl="https://docs.cloudron.io/branding/#footer" multiline :saving="savingFooter" :value="footer" :disabled="!features.branding" @save="onFooterSave"/>
</SettingsItem> </SettingsItem>
</Section>
<Section :title="$t('dashboard.title')">
<SettingsItem> <SettingsItem>
<FormGroup> <FormGroup>
<label>Dashboard Links</label> <label>{{ $t('externallinks.label') }}</label>
<div>Links to other domains and services can be added to the dashboard</div> <div>{{ $t('externallinks.description') }}</div>
</FormGroup> </FormGroup>
<div style="display: flex; position: relative; align-items: center"> <div style="display: flex; position: relative; align-items: center">
<Button tool plain @click="onAddDashboardLink()" :disabled="!features.branding">Add Link</Button> <Button tool plain @click="onAddExternalLink()" :disabled="!features.branding">{{ $t('main.action.add') }}</Button>
</div> </div>
</SettingsItem> </SettingsItem>
</Section> </Section>