Skip to content

Ask user if they want to overwrite #1

Open
@nikoladev

Description

@nikoladev
Owner

Right now it overwrites automatically.

Possible implementation:

  1. Loop through all names in the selection and the output folder and check there are no duplicates
  2. If there are no duplicates, continue as normal
  3. If there ARE duplicates, ask in a dialog if they want to overwrite or abort
  4. Set overwrite to true or false depending on their answer
  5. Possible: show which files were skipped if they didn't want to overwrite? (show this in a scrollable list in case there is lots to show)

Dialog samples that can serve as inspiration: https://github.com/AdobeXD/plugin-samples/tree/master/ui-dialog-variations

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @nikoladev

        Issue actions

          Ask user if they want to overwrite · Issue #1 · nikoladev/xd-export