Skip to content

Commit 1431945

Browse files
authored
Merge pull request #355 from lane711/fix-settings-save-button
fix: show warning instead of validation error on WIP settings tabs
2 parents 12f0dc6 + f4d46ac commit 1431945

1 file changed

Lines changed: 9 additions & 0 deletions

File tree

packages/core/src/templates/pages/admin-settings.template.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -153,6 +153,15 @@ export function renderSettingsPage(data: SettingsPageData): string {
153153
const currentTab = '${activeTab}';
154154
155155
async function saveAllSettings() {
156+
// Tabs with implemented save functionality
157+
const saveableTabs = ['general'];
158+
159+
// Check if current tab supports saving
160+
if (!saveableTabs.includes(currentTab)) {
161+
showNotification('Saving is not yet available for this settings section. This feature is under development.', 'warning');
162+
return;
163+
}
164+
156165
// Collect all form data
157166
const formData = new FormData();
158167

0 commit comments

Comments
 (0)