mirror of
https://github.com/apache/superset.git
synced 2026-04-26 19:44:58 +00:00
feat: disable edits on external assets (#19344)
* feat: disable edits on external assets * Update tests
This commit is contained in:
@@ -226,7 +226,18 @@ const DatasourceModal: FunctionComponent<DatasourceModalProps> = ({
|
||||
buttonStyle="primary"
|
||||
data-test="datasource-modal-save"
|
||||
onClick={onClickSave}
|
||||
disabled={isSaving || errors.length > 0}
|
||||
disabled={
|
||||
isSaving ||
|
||||
errors.length > 0 ||
|
||||
currentDatasource.is_managed_externally
|
||||
}
|
||||
tooltip={
|
||||
currentDatasource.is_managed_externally
|
||||
? t(
|
||||
"This dataset is managed externally, and can't be edited in Superset",
|
||||
)
|
||||
: ''
|
||||
}
|
||||
>
|
||||
{t('Save')}
|
||||
</Button>
|
||||
|
||||
Reference in New Issue
Block a user