Skip to content

Commit

Permalink
Let the user purge SQLite only when duckDB is migrated
Browse files Browse the repository at this point in the history
  • Loading branch information
Pierre-Gilles committed Jul 15, 2024
1 parent 95ccd6b commit 6af8b39
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ class SettingsSystemDuckDbMigration extends Component {
</h5>
<p>
{!confirmPurgingSQlite ? (
<button onClick={this.togglePurgeConfirmation} class="btn btn-danger">
<button
onClick={this.togglePurgeConfirmation}
class="btn btn-danger"
disabled={migrationState && !migrationState.is_duck_db_migrated}
>
<Text id="systemSettings.purgeSQliteTitle" />
</button>
) : (
Expand Down

0 comments on commit 6af8b39

Please sign in to comment.