Move Save Settings button to top of Docs Settings page
Bunker Admin
This commit is contained in:
parent
b061e2ce61
commit
c8640ca4c7
@ -808,6 +808,17 @@ export default function MkDocsSettingsPage() {
|
||||
label: 'Settings',
|
||||
children: (
|
||||
<div style={{ maxWidth: 900 }}>
|
||||
<div style={{ display: 'flex', justifyContent: 'flex-end', marginBottom: 16 }}>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={<SaveOutlined />}
|
||||
onClick={saveSettings}
|
||||
loading={settingsSaving}
|
||||
disabled={!settingsDirty || !isSuperAdmin}
|
||||
>
|
||||
Save Settings
|
||||
</Button>
|
||||
</div>
|
||||
<Card title="Site Info" size="small" style={{ marginBottom: 16 }}>
|
||||
<Form
|
||||
form={settingsForm}
|
||||
@ -891,17 +902,6 @@ export default function MkDocsSettingsPage() {
|
||||
))}
|
||||
</Card>
|
||||
|
||||
<div style={{ display: 'flex', justifyContent: 'flex-end', padding: '16px 0' }}>
|
||||
<Button
|
||||
type="primary"
|
||||
icon={<SaveOutlined />}
|
||||
onClick={saveSettings}
|
||||
loading={settingsSaving}
|
||||
disabled={!settingsDirty || !isSuperAdmin}
|
||||
>
|
||||
Save Settings
|
||||
</Button>
|
||||
</div>
|
||||
</div>
|
||||
),
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user