I have added an extra property on User entity to store last login datetime. Now on the manage users page how do I configure it to show custom date format like "dd/MM/yyyy HH:mm:ss".
As of now I did find some solution going through the docs & other peoples posts but its not working. Here's what I have done till now:
ObjectExtensionManager.Instance.Modules()
.ConfigureIdentity(identity =>
{
identity.ConfigureUser(user =>
{
user.AddOrUpdateProperty<DateTime?>(
"LastLoginDateTime",
property =>
{
property.DisplayName = LocalizableString.Create<Paddy_Power_Self_ExclusionResource>(CustomIdentityUserPropertyNames.LastLoginDateTimeDisplayName);
property.UI.OnEditForm.IsVisible = false;
property.UI.OnCreateForm.IsVisible = false;
property.UI.OnTable.IsVisible = true;
property.Api.OnCreate.IsAvailable = false;
property.Api.OnUpdate.IsAvailable = false;
property.Attributes.Add(new DataTypeAttribute(DataType.DateTime));
var format = new DisplayFormatAttribute()
{
DataFormatString = "dd/MM/yyyy HH:mm:ss",
NullDisplayText = ""
};
property.Attributes.Add(format);
}
);
});
});
I have a form that takes some time to respond once its submitted. I need to block the UI so that the submit button is not clicked multiple times and a provide a spinner for a better user experience to indicate background process. How do I achieve this in my Blazor application ?
We have implemented an auto logout feature after a specific timeout period. Currently we don't want the user to be redirected to login page instead we want to show a Login Modal on that same page. What is the best way to achieve this using Blazor & components? Are there any samples/references?
I am using date range picker using abps tag helper. Currently it shows MM/DD/YYYY as date format. How do I set the display format to be DD/MM/YYYY - DD/MM/YYYY.
<abp-date-range-picker id="DateRangePicker" asp-for-start="@Model.StartDate.Date" asp-for-end="@Model.EndDate.Date" max-date="@Model.MaxDate" readonly=true label="Date Range" open-button=false data-date-limit='{"days": "6"}' data-show-today-button="false" data-show-clear-button="false" />
When we impersonate a tenant and after login if we want to go back to admin account there is a "Back to my account" button on toolbar. But it is not visible in mobile view. I have attached two images