Skip to content

feat: add purge option to snap uninstall dropdown (#2019)#2057

Open
gauravsaini wants to merge 1 commit into
ubuntu:mainfrom
gauravsaini:fix/add-purge-option-2019
Open

feat: add purge option to snap uninstall dropdown (#2019)#2057
gauravsaini wants to merge 1 commit into
ubuntu:mainfrom
gauravsaini:fix/add-purge-option-2019

Conversation

@gauravsaini

Copy link
Copy Markdown

Summary

Changes

  • snap_model.dart: Added removeWithPurge() method that passes purge: true to snapd
  • snap_action.dart: Added removePurge action variant
  • manage_app_actions.dart: Converted Uninstall button to dropdown with two options:
    • "Uninstall" - removes snap, keeps user data
    • "Uninstall (remove data)" - removes snap and all user data via --purge
  • app_en.arb: Added l10n strings for purge action

Testing

The dropdown menu shows two options when clicking the Uninstall button on the manage page. The "Uninstall (remove data)" option uses the snapd API's existing purge parameter.

Add an option to remove snaps with user data (--purge flag) via a
dropdown menu on the Uninstall button.

Changes:
- Add removeWithPurge() method to SnapModel that passes purge: true to snapd
- Add removePurge action to SnapAction enum
- Convert single Uninstall button to dropdown with 'Uninstall' and
  'Uninstall (remove data)' options
- Add l10n strings for the purge action
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to use --purge flag in gui

1 participant