…lines 1–19 unchanged (19 lines)
20import { useSelector } from 'react-redux';
21import { t } from '@apache-superset/core';
22import {
23 SupersetClient,
24 getClientErrorObject,
25 SupersetError,
26 isFeatureEnabled,
27 FeatureFlag,
28} from '@superset-ui/core';
29import { styled, useTheme, css, Alert } from '@apache-superset/core/ui';
30
31import {
32 Icons,
33 Button,
…lines 34–171 unchanged (138 lines)
172 }),
173 ),
174 owners: datasource.owners.map(
175 (o: Record<string, number>) => o.value || o.id,
176 ),
177 };
178 // Add folders if DATASET_FOLDERS feature is enabled
179 if (isFeatureEnabled(FeatureFlag.DatasetFolders) && datasource.folders) {
180 payload.folders = datasource.folders;
181 }
182 // Handle catalog based on database's allow_multi_catalog setting
183 // If multi-catalog is disabled, don't include catalog in payload
184 // The backend will use the default catalog
185 // If multi-catalog is enabled, include the selected catalog
186 if (datasource.database?.allow_multi_catalog) {
187 payload.catalog = datasource.catalog;
…lines 188–358 unchanged (171 lines)
359 }
360 tooltip={
361 currentDatasource.is_managed_externally
362 ? t(
363 "This dataset is managed externally, and can't be edited in Superset",
364 )
365 : errors.length > 0
366 ? errors.join('\n')
367 : ''
368 }
369 >
370 {t('Save')}
371 </Button>
372 </>
373 }
…lines 374–400 unchanged (27 lines)