Skip to content

v15.2-RC Allow Access to _getHasUnpersistedChanges() in UmbWorkspaceActionBase #18230

Closed
@jbppraxis

Description

@jbppraxis

Which Umbraco version are you using? (Please write the exact version, example: 10.1.0)

15.2

Bug summary

I am currently developing a custom WorkspaceAction by extending UmbWorkspaceActionBase. In this process, I need to determine whether there are any unpersisted changes before executing the action, similar to the check performed when navigating away from the workspace.

While reviewing the base class, I noticed the method _getHasUnpersistedChanges(): boolean:

Since this method is marked as protected, it cannot be accessed directly from a subclass. This restriction makes it difficult to implement a feature that needs to verify the presence of unsaved changes.

Request:
Would it be possible to either:

Remove the protected modifier from _getHasUnpersistedChanges() to make it accessible to subclasses, or
Provide an alternative public method to check for unpersisted changes?
This change would help developers building custom workspace actions and align with existing internal behaviors for unsaved change detection.

Specifics

No response

Steps to reproduce

Extend UmbWorkspaceActionBase and see that it is not accessible.

Expected result / actual result

No response

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions