mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 16:55:59 +03:00
[PR #3416] [MERGED] feat(common): alert the user on empty collection/environment exports #4377
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#4377
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/hoppscotch/hoppscotch/pull/3416
Author: @jamesgeorge007
Created: 10/4/2023
Status: ✅ Merged
Merged: 10/5/2023
Merged by: @AndrewBastin
Base:
release/2023.8.2← Head:feat/alert-on-empty-export📝 Commits (1)
cebac9cfeat: alert the user on empty collection/environment exports📊 Changes
4 files changed (+22 additions, -0 deletions)
View changed files
📝
packages/hoppscotch-common/locales/en.json(+2 -0)📝
packages/hoppscotch-common/src/components/collections/graphql/ImportExport.vue(+7 -0)📝
packages/hoppscotch-common/src/components/collections/index.vue(+6 -0)📝
packages/hoppscotch-common/src/components/environments/ImportExport.vue(+7 -0)📄 Description
Description
Exporting is allowed regardless of collection/environment entries, resulting in an empty
jsonfile being downloaded. This PR aims to show an error toast when no collections or environments exist and the user attempts to export.Fixes HP-166.
Preview
https://github.com/hoppscotch/hoppscotch/assets/25279263/c2be565b-69cb-42aa-ada4-fe675d3848a9
Checks
Additional Information
Appreciate any suggestions to improvise the toast message.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.