mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-26 01:06:00 +03:00
[PR #2239] [MERGED] feat: unsaved change popup #3686
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#3686
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/2239
Author: @nivedin
Created: 4/6/2022
Status: ✅ Merged
Merged: 4/13/2022
Merged by: @AndrewBastin
Base:
main← Head:feat/unsaved-change-popup📝 Commits (10+)
32bbd7dfeat: show warning popup when changing api634b902chore: updatesd415b59refactor: migrate component to script setup on ts8d2fe3fchore: popup ui change1fc7243refactor: migrate to setup and tsdfbab0cchore: update8bf06f2refactor: types and functional improvementsc75783fchore: rebase with main6d1f9fbfix: merge commits878cabcMerge branch 'main' into feat/unsaved-change-popup📊 Changes
7 files changed (+769 additions, -240 deletions)
View changed files
📝
packages/hoppscotch-app/.gitignore(+1 -1)📝
packages/hoppscotch-app/components/collections/my/Request.vue(+295 -117)📝
packages/hoppscotch-app/components/collections/teams/Request.vue(+268 -100)📝
packages/hoppscotch-app/components/history/index.vue(+134 -22)➕
packages/hoppscotch-app/components/http/ReqChangeConfirmModal.vue(+59 -0)📝
packages/hoppscotch-app/helpers/types/HoppRequestSaveContext.ts(+10 -0)📝
packages/hoppscotch-app/locales/en.json(+2 -0)📄 Description
Closes #2207
Description
Shows a popup when there are any changes done in the current request (API, parameter, body,..) after clicking on any other collection request.
Checks
Additional Information
When a user is working on a request and made many changes and accidentally clicks on another collection request all the changes that have been done will be lost. So to prevent this problem this PR adds a function that triggers a popup when any changes are detected when the user clicks on another collection request which asks whether to save or discard the changes.
TODO
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.