bcgov / bcgov/entity

Create UI: some changes don't trigger "unsaved changes" dialog

Open
#4,802 2 comments 0 reactions 0 assignees View on GitHub
ENTITY - DO NOT USE Priority2 techdebt
Dominant language
JavaScript
Stars
23
Forks
62
Avg merge
24m
Merged PRs (30d)
1

Description

**Describe the bug in current situation**
In the Create UI code, any time the user modifies a store value (eg, Folio Number) and then tries to exit without saving, the framework should prompt with "You have unsaved changes. Are you sure you want to leave?"

However, some store values are missing some code to enable this. See https://github.com/bcgov/bcrs-business-create-ui/blob/master/src/store/mutations/mutations-model.ts.

The developer will have to determine which store values need this code. (Changes made by the app itself don't need this.)

**Link bug to the User Story**
N/A

**Impact of this bug**
Some changes the user has made won't trigger the "unsaved changes" dialog.

**Chance of Occurring (high/medium/low/very low)**
See description.

**Pre Conditions: which Env, any pre-requesites or assumptions to execute steps?**
See description.

**Steps to Reproduce**
See description.

**Actual/ observed behavior/ results**
See description.

**Expected behavior**
See description.

**Screenshots/ Visual Reference/ Source**
N/A

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.