ji-devs / ji-devs/ji-cloud

When clicking "Upload a file" in audio tab when editing a card game, existing audio is removed

Open
#2,549 3 comments 0 reactions 2 assignees View on GitHub

@corinnewo is already working on this.

Since Sep 1, 2022.

Activities: All card games bug
Dominant language
Rust
Stars
14
Forks
18
PR merge metrics
No merged PRs in 30d

Description

Describe the bug

When clicking "Upload a file" in audio tab when editing a card game, existing audio is removed without prompting the teacher if they want to remove it.

To Reproduce
Steps to reproduce the behavior:

  1. Create a card game and add audio to a card;
  2. Once audio is saved on the card, click the "Upload a file" button;
  3. Note that the uploaded audio is removed, and you need to click "Upload a file" again to switch to the upload view.

Expected behavior

The teacher should be prompted if they want to remove the existing audio, if there is audio. Otherwise, they should be able to switch without a prompt.

Screenshots

Audio recorded and saved

Screenshot 2022-03-15 at 10 33 11

Clicked "Upload a file"

Screenshot 2022-03-15 at 10 33 19

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.