Skip to content

Prevent share button from confirming to share when the project is shared already - #2441

Merged
apple502j merged 5 commits into
ScratchAddons:masterfrom
FunctionalMetatable:fix-confirm-actions-unshare-stuff
May 18, 2021
Merged

Prevent share button from confirming to share when the project is shared already#2441
apple502j merged 5 commits into
ScratchAddons:masterfrom
FunctionalMetatable:fix-confirm-actions-unshare-stuff

Conversation

@FunctionalMetatable

Copy link
Copy Markdown
Contributor

Resolves

Resolves #2176

Changes

Changes the querySelector from [class*='share-button_share-button'] to [class*='share-button_share-button']:not([class*='is-shared']) to prevent confirm-actions from confirming to share the project when it already is

Reason for changes

Its a bug that existed for a long time and needs fixing

Tests

tested on edge

@apple502j apple502j added priority: 4 Low priority. Includes minor bugs and less important features scope: addon Related to one or multiple addons labels May 18, 2021
@apple502j
apple502j merged commit 045ba26 into ScratchAddons:master May 18, 2021
FunctionalMetatable added a commit to FunctionalMetatable/ScratchAddons that referenced this pull request May 19, 2021
* New strings from Transifex (ScratchAddons#2519)

Co-authored-by: scratchaddons-bot[bot] <73682299+scratchaddons-bot[bot]@users.noreply.github.com>

* Add reduxCondition to more addons (ScratchAddons#2508)

* comments-linebreaks

* remix-tree-button

* more-links

* infinite-scroll

* copy-message-link

* true-youtube-links

* better-emojis

* Update better-emojis

* fix copy-message-link on non-project pages

* editor-devtools: fix some bugs (ScratchAddons#2474)

* editor-devtools: make switching between receivers across sprites more reliable

* editor-devtools: disable middle mouse default behavior

For Linux systems where middle mouse = paste

* editor-devtools: fix mouse position being incorrect sometimes

* editor-devtools: fix floating block palette after leaving custom procedure creator

* editor-devtools: Allow interacting with the floating block palette with a mouse

* fix pressing enter to select blocks

* fix confirm actions button (ScratchAddons#2441)

* New strings from Transifex (ScratchAddons#2529)

Co-authored-by: scratchaddons-bot[bot] <73682299+scratchaddons-bot[bot]@users.noreply.github.com>

* data-category-tweaks-v2: use real blockly (ScratchAddons#2528)

* Rewrite on real blockly

* Still have to do a manual workspace update

* Update comment

* Color picker fixes (ScratchAddons#2370)

* Bump color-picker

* Update README.md

* Bump again

* Update README.md

* Update README.md

* Update index.js

* style: format code

Co-authored-by: GrahamSH-LLK <GrahamSH-LLK@users.noreply.github.com>

* Change default msg-count-badge color, make it customizable (ScratchAddons#2430)

* Support Scratch Team Alerts (ScratchAddons#2431)

* init commit

* style: format code

* parse message as html instead of text

* Make dismiss alert work, UI changes

* style: format code

* add back wl's comment

* Fix dismiss sometimes not working

* There is no reason, I just didn't think about it then

Co-authored-by: TheColaber <TheColaber@users.noreply.github.com>
Co-authored-by: WorldLanguages <mundofinky@gmail.com>
Co-authored-by: WorldLanguages <WorldLanguages@users.noreply.github.com>

* Update icons.css (ScratchAddons#2437)

* Ask before closing a topic in the forums (ScratchAddons#2455)

* code

* style: format code

* addon.json

* l10n

* use "Confirm closing forum topics" instead of "Confirm closing topics"

* Remove "studios" and "forums" tags

Co-authored-by: FunctionalMetatable <FunctionalMetatable@users.noreply.github.com>
Co-authored-by: WorldLanguages <mundofinky@gmail.com>

* Format code

Co-authored-by: scratchaddons-bot[bot] <73682299+scratchaddons-bot[bot]@users.noreply.github.com>
Co-authored-by: GarboMuffin <33787854+GarboMuffin@users.noreply.github.com>
Co-authored-by: GrahamSH <grahamshllk@gmail.com>
Co-authored-by: GrahamSH-LLK <GrahamSH-LLK@users.noreply.github.com>
Co-authored-by: World_Languages <mundofinky@gmail.com>
Co-authored-by: TheColaber <72760579+TheColaber@users.noreply.github.com>
Co-authored-by: TheColaber <TheColaber@users.noreply.github.com>
Co-authored-by: WorldLanguages <WorldLanguages@users.noreply.github.com>
Co-authored-by: Secret-chest <74449186+Secret-chest@users.noreply.github.com>
Co-authored-by: FunctionalMetatable <FunctionalMetatable@users.noreply.github.com>
@FunctionalMetatable
FunctionalMetatable deleted the fix-confirm-actions-unshare-stuff branch August 2, 2021 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

priority: 4 Low priority. Includes minor bugs and less important features scope: addon Related to one or multiple addons

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Still asks "Share?" When already shared

2 participants