Display 'Delete Selected' in Drafts Conditionally

in #utopian-io7 years ago (edited)

busy-logo.PNG

Expected behavior

In the busy.org drafts page, the users are shown their saved drafts. There is a button 'Deleted Selected' which will delete the select drafts or we can select all drafts and delete them at once. If none of the drafts are selected then this should be disabled, users should not be allowed to click on it.

Delete option is available for each individual drafts too, which is working fine but not the 'Delete selected' button placed above the drafts list.

Actual behavior

The 'Delete selected' button is always visible even when none of the drafts are selected. The link is active hence the users can click on it, then it shows a confirmation pop up for deletion. Logically it is incorrect because the users have not selected any drafts but yet the deletion confirmation shows up when we click on 'Delete Selected', after confirming nothing happens.

Basically, the 'Delete Selected' should work only when the user has selected atleast one draft from the list.

How to reproduce

  1. Go to https://busy.org
  2. After logging in, navigate to drafts page through the header menu 'three dots menu' and select 'Drafts'
  3. Alternatively, once logged in we can navigate to https://busy.org/drafts
  4. If any drafts are available, 'Delete selected' will appear above the drafts list.
  5. Click on it & it would show confirmation popup (and that is the bug!)
  • Browser: Chrome
  • Operating system: Windows 7

Recording Of The Bug

Recording of the bug and steps to reproduce is available below.

busy_drafts_800.gif



Posted on Utopian.io - Rewarding Open Source Contributors

Sort:  

Thank you for the contribution. It has been approved.

I was having second thoughts whether this would fall under suggestion, but decided that it can be considered a bug since it should just display 'Are you sure you want to permanently delete..?' when there's something selected.

You can contact us on Discord.
[utopian-moderator]

Hey @eastmael, I just gave you a tip for your hard work on moderation. Upvote this comment to support the utopian moderators and increase your future rewards!

Thanks, the bug here is - it shows a confirmation message even though none of them were selected.

I know many people use busy.org but I have yet to try it - in your opinion is this a good alternative to Steemit? What are the major benefits?
c0ff33commentaimage.png
#thealliance

busy.org is good in terms of UI. It has a recommendation feature which will suggest whom to follow and what to read etc. Recently, notifications is also added, which will let you know when someone follow you or when you are mentioned in any post etc.

Hi! Thanks for your support, @growingpower just upvoted your comment ;) Hope you have a great day

Thanks for sharing your knowledge. Your article will benefit for new steemitian.

Congratulations @lifecruiser! You have completed some achievement on Steemit and have been rewarded with new badge(s) :

Award for the number of comments received

Click on any badge to view your own Board of Honor on SteemitBoard.
For more information about SteemitBoard, click here

If you no longer want to receive notifications, reply to this comment with the word STOP

Upvote this notification to help all Steemit users. Learn why here!

Hey @lifecruiser I am @utopian-io. I have just upvoted you!

Achievements

  • Seems like you contribute quite often. AMAZING!

Suggestions

  • Contribute more often to get higher and higher rewards. I wish to see you often!
  • Work on your followers to increase the votes/rewards. I follow what humans do and my vote is mainly based on that. Good luck!

Get Noticed!

  • Did you know project owners can manually vote with their own voting power or by voting power delegated to their projects? Ask the project owner to review your contributions!

Community-Driven Witness!

I am the first and only Steem Community-Driven Witness. Participate on Discord. Lets GROW TOGETHER!

mooncryption-utopian-witness-gif

Up-vote this comment to grow my power and help Open Source contributions like this one. Want to chat? Join me on Discord https://discord.gg/Pc8HG9x

Coin Marketplace

STEEM 0.20
TRX 0.15
JST 0.029
BTC 62864.56
ETH 2538.87
USDT 1.00
SBD 2.93