Create two sections in appearance
Branding and External Links
This commit is contained in:
@@ -64,7 +64,7 @@ async function onFooterSave(newFooter) {
|
||||
|
||||
const applinkDialog = useTemplateRef('applinkDialog');
|
||||
|
||||
function onAddDashboardLink() {
|
||||
function onAddExternalLink() {
|
||||
applinkDialog.value.open();
|
||||
}
|
||||
|
||||
@@ -108,14 +108,16 @@ onMounted(async () => {
|
||||
<SettingsItem>
|
||||
<EditableField :label="$t('branding.footer.title')" helpUrl="https://docs.cloudron.io/branding/#footer" multiline :saving="savingFooter" :value="footer" :disabled="!features.branding" @save="onFooterSave"/>
|
||||
</SettingsItem>
|
||||
</Section>
|
||||
|
||||
<Section :title="$t('dashboard.title')">
|
||||
<SettingsItem>
|
||||
<FormGroup>
|
||||
<label>Dashboard Links</label>
|
||||
<div>Links to other domains and services can be added to the dashboard</div>
|
||||
<label>{{ $t('externallinks.label') }}</label>
|
||||
<div>{{ $t('externallinks.description') }}</div>
|
||||
</FormGroup>
|
||||
<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>
|
||||
</SettingsItem>
|
||||
</Section>
|
||||
|
||||
Reference in New Issue
Block a user