Commit 30081a1f by muhsin

change details page working , fixed styling in product list

parent 3d105682
...@@ -112,3 +112,10 @@ ...@@ -112,3 +112,10 @@
</form> </form>
</div> </div>
</ion-content> </ion-content>
<div class="loader" *ngIf="register.loader">
<div class="lds-ripple">
<div></div>
<div></div>
</div>
</div>
...@@ -108,7 +108,7 @@ ...@@ -108,7 +108,7 @@
img { img {
width: 100%; width: 100%;
height: 100%; height: 100%;
object-fit: cover; object-fit: contain;
object-position: center; object-position: center;
} }
} }
......
...@@ -21,6 +21,7 @@ export class UpdateService { ...@@ -21,6 +21,7 @@ export class UpdateService {
type: number; type: number;
userPostData: any; userPostData: any;
updateStatus: number; updateStatus: number;
loader: boolean;
constructor( constructor(
public afs: AngularFirestore, public afs: AngularFirestore,
...@@ -48,6 +49,7 @@ export class UpdateService { ...@@ -48,6 +49,7 @@ export class UpdateService {
} }
updateData(userData: UpdateUserDetails, oldData: User) { updateData(userData: UpdateUserDetails, oldData: User) {
this.loader = true;
this.type = 2; this.type = 2;
const postData: UpdateUserDetails = { const postData: UpdateUserDetails = {
...@@ -70,7 +72,12 @@ export class UpdateService { ...@@ -70,7 +72,12 @@ export class UpdateService {
.set('userData', JSON.stringify(updateOldData)) .set('userData', JSON.stringify(updateOldData))
.then(res => { .then(res => {
console.log('success', updateOldData, res); console.log('success', updateOldData, res);
this.router.navigateByUrl('profile'); this.service
.showToast('Profile updated!', 'top', 'my-toast', 1000)
.then(res => {
this.router.navigateByUrl('profile');
this.loader = false;
});
}) })
.catch(err => console.log(err)); .catch(err => console.log(err));
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment