I wasn't able to find the root cause of the problem but these changes to my javascript resolved it.
modal.find('.save-button').off('click').on('click', (e) => { e.preventDefault(); this.save(); });
For the save :
this.save = function() { _modalManager.setBusy(true);
if (requestInProgress) { return; // Prevent duplicate POST }
requestInProgress = true; // Lock to avoid duplicate submission
_modalManager.setBusy(true);
abp.ajax({
url: abp.appPath + 'api/services/app/TestEntity/CreateOrEdit',
type: 'POST',
data: JSON.stringify(testEntity),
contentType: 'application/json',
})
.done(() => {
abp.notify.info(app.localize('SavedSuccessfully'));
_modalManager.close();
abp.event.trigger('app.createOrEditTestEntityModalSaved');
})
.fail((error) => {
abp.notify.error(error.message || app.localize("UnexpectedErrorOccurred"));
})
.always(() => {
requestInProgress = false; // Reset flag
_modalManager.setBusy(false); // Ensure spinner is removed
});
}
Hi @razkhan78, @ismcagdas
Have you been able to figure out what's causing this behavior?
Thanks,
Ed
What is the best approach to upload a file or photo from a MAUI XAML App?
We are using an ASP.NET Core MVC solution.
Thanks,
Ed
It's an empty string.
What version are you migrating from?
It's explained here:
Hi @hra
@edarib is right about the User Role.
For example if you enable LDAP, users will be able to login with their windows credentials but they won't have any access until you explicitly grant it.
Another use case: If you allow Self-Registration, you want to first review the request before assigning a role with access to your application.
"User" role is the out of the box static default role with no permissions. You can define what access it provides for your application. When you create a user that's the role they get by default which can be changed.
Have you looked at this documentation?
https://docs.aspnetzero.com/en/aspnet-core-mvc/latest/Core-Mvc-Elsa-Integration