Comments (2)
The form must inform the PhotoUploadComponent
to not delete the photo after being destroyed (due to navigating away) by setting the deleteOnClose
property to false
right before triggering the navigation, but this change doesn't always get picked up by the upload component.
from gym-webapp.
The solution is to force change detection after setting deleteOnClose
to false
in the parent component by calling ChangeDetectorRef.detectChanges()
.
This will let the PhotoUploadComponent
pick up the changes before executing ngOnDestroy()
from gym-webapp.
Related Issues (20)
- Add a 'loading' indicator in packs' components
- Display multiple background images in the home page
- The add charge & add new pack dialog are not displayed correctly on small screens
- Add 'delete charge' in admin module
- Add 'edit charge' in admin module HOT 1
- Add 'edit pack' in admin module
- Add 'delete subscription' in admin module HOT 1
- Add 'delete profile' in manager module HOT 1
- Add 'delete photo' in client's profile
- Add 'add photo' in manager module
- Remove the footer and move its content to the bottom of the main menu
- Fix the spacing in the authentication menu.
- Add ':m' & 'f' query when searching for clients
- Tag v0.4.0
- Fix size of photo in 'add client' form
- Step one in client's form in optional
- Document title is duplicated in client's profile
- Update to angular 8
- Release v0.4.1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gym-webapp.