Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Ashkan Sirous 38 posts 232 karma points
    Nov 20, 2017 @ 16:41
    Ashkan Sirous
    0

    "You have unsaved changes" in custom dashboard

    We've added a custom dashboard to our project. The dashboard connects to some Api's that I've written (inheriting from UmbracoAuthorizedApiController)

    Everything works fine and there is no errors anywhere, but when I want to change the page, the popup box with "You have unsaved changes" message shows up.

    What are we missing? How Umbraco detects that there is a change on the page?

  • Richard Soeteman 4046 posts 12899 karma points MVP 2x
    Nov 21, 2017 @ 10:06
    Richard Soeteman
    2

    You can disable this by using the noDirtyCheck directive.

    <div ng-controller="myController" noDirtyCheck>
    .... html here
    </div>
    

    This is included these days in Umbraco itself but an old post can be found at http://nathanw.com.au/blog/suppressing-dirty-checking-in-umbraco-dashboard-inputs/

    Hope this helps,

    Richard

  • Ashkan Sirous 38 posts 232 karma points
    Nov 22, 2017 @ 15:59
    Ashkan Sirous
    104

    Hi Richard,

    Thanks for the reply. I tried adding noDirtyCheck on the controller but it didn't work. :( but thanks to your answer I've found another link and did it on the input level and it worked fine :)

    <div class="input">
    <input type="text" ng-model="vm.create.data.address" no-dirty-check/>
    </div>
    

    Thank you very much

  • Keir Harness 1 post 71 karma points
    Aug 16, 2019 @ 16:38
    Keir Harness
    0

    Thanks for this, we have been struggling with a similar problem, where a change is saved to content but you cannot exit the page and move to another one in the list until you have re saved the change.

Please Sign in or register to post replies

Write your reply to:

Draft