emonney / QuickApp

ASP.NET Core / Angular startup project template with complete login, user and role management. Plus other useful services for Quick Application Development
https://www.ebenmonney.com/quickapp
MIT License
1.26k stars 594 forks source link

Issue in Quick App Pro. Cancel Button in User Profile #82

Closed codestellar closed 6 years ago

codestellar commented 6 years ago

Cancel button is not working in Edit User Profile

emonney commented 6 years ago

I checked from the demo page and its working. How do you reproduce it?

codestellar commented 6 years ago

Sorry for late reply! I checked in the demo page and it is not working. Go to Settings > Edit Profile > Cliick on Cancel and it does not work. image

codestellar commented 6 years ago

@emonney can you please re-open this issue

emonney commented 6 years ago

@codestellar Sorry I assumed this was the Open Source version. Yes I was able to reproduce this. The fix is to add the line this.isEditMode = false to the cancel() function in "user-editor.component.ts". Also change its access modifier from private to public. So it becomes:

    public cancel() {
        this.resetForm();
        this.isEditMode = false;

        this.alertService.resetStickyMessage();
    }
emonney commented 6 years ago

This was fixed in the recent update. Please redownload the sourcecode to get the fix.