Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Firstly: Yes, I've read that Umbraco say that not to place controls in a content app - but the alternative is not to use Umbraco at all, and that wont be accepted by "the powers that be".
These things work fine, and the app with list of members gets refreshed when a new member is added.
But! Editing one of the content apps triggers "You have unsaved changes" when navigating from the node - even though no change is made in content, and it appears like the surrounding "editor-form" gets $dirty == true.
I've tried setting the "new-member"-form and the permissions-form to $pristine after update, but that doesn't fix it.
$dirty == true
Anyone with a hint how to fix that one?
(Preferably other than hacking some part of Umbraco...)
var currForm = angularHelper.getCurrentForm($scope);
Had to do this, tho' it just pushes the problem one step further away, since if the node has any more controls/inputs, and editing any of these, will introduce the issue of where the change has been made - and there we are now.
//this is the topmost form that gets "dirty"
vm.contentForm = angular.element('[name="contentForm"]').scope();
//after form is submitted to API
^--- not production code!
is working on a reply...
Write your reply to:
Image will be uploaded when post is submitted