feat(explore-popover): Show disabled 'Save' button in explore popover (#21318)

Co-authored-by: Herbert Gainor <herbert.gainor@preset.io>
Co-authored-by: Michael S. Molina <michael.s.molina@gmail.com>
This commit is contained in:
Anthony Gainor
2022-12-07 11:25:54 -06:00
committed by GitHub
parent 2731cbacbf
commit 0dbaaad83d
6 changed files with 42 additions and 33 deletions

View File

@@ -406,10 +406,8 @@ const ColumnSelectPopover = ({
{t('Close')}
</Button>
<Button
disabled={!stateIsValid}
buttonStyle={
hasUnsavedChanges && stateIsValid ? 'primary' : 'default'
}
disabled={!stateIsValid || !hasUnsavedChanges}
buttonStyle="primary"
buttonSize="small"
onClick={onSave}
data-test="ColumnEdit#save"