-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Bugfix/#6370 #2706
Bugfix/#6370 #2706
Changes from 2 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -288,11 +288,15 @@ export class AddNewHabitComponent implements OnInit { | |
this.friendsIdsList = this.userFriendsService.addedFriends?.map((friend) => friend.id); | ||
const defailtItemsIds = this.standartShopList.filter((item) => item.selected === true).map((item) => item.id); | ||
const habitAssignProperties: HabitAssignPropertiesDto = { defaultShoppingListItems: defailtItemsIds, duration: this.newDuration }; | ||
console.log(habitAssignProperties, defailtItemsIds, this.standartShopList, 'habitAssignProperties'); | ||
this.habitAssignService | ||
.assignCustomHabit(this.habitId, this.friendsIdsList, habitAssignProperties) | ||
.pipe(take(1)) | ||
.subscribe(() => { | ||
this.customShopList.length > 0 ? this.addCustomHabitItems() : this.afterHabitWasChanged('habitAdded'); | ||
if (this.customShopList.length > 0) { | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. if (this.customShopList.length) |
||
this.addCustomHabitItems(); | ||
} | ||
this.afterHabitWasChanged('habitAdded'); | ||
}); | ||
} | ||
|
||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -92,6 +92,7 @@ export class HeaderComponent implements OnInit, OnDestroy { | |
this.imgAlt = this.isUBS ? 'Image ubs logo' : 'Image green city logo'; | ||
this.localeStorageService.setUbsRegistration(this.isUBS); | ||
this.toggleHeader(); | ||
console.log(this.navLinks, 'navLinks'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. the same |
||
this.dialog.afterAllClosed.pipe(takeUntil(this.destroySub)).subscribe(() => { | ||
this.focusDone(); | ||
}); | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
import { Component, ViewChild, ElementRef } from '@angular/core'; | ||
import { Component, ViewChild, ElementRef, OnInit } from '@angular/core'; | ||
import { Subject } from 'rxjs'; | ||
import { takeUntil } from 'rxjs/operators'; | ||
import { MatDialog } from '@angular/material/dialog'; | ||
|
@@ -11,7 +11,7 @@ import { ubsHeaderIcons } from '../../main/image-pathes/header-icons'; | |
templateUrl: './ubs-footer.component.html', | ||
styleUrls: ['./ubs-footer.component.scss'] | ||
}) | ||
export class UbsFooterComponent { | ||
export class UbsFooterComponent implements OnInit { | ||
public footerPicture = ubsHeaderIcons; | ||
public screenWidth = window.innerWidth; | ||
public currentYear = new Date().getFullYear(); | ||
|
@@ -22,11 +22,16 @@ export class UbsFooterComponent { | |
|
||
constructor(private dialog: MatDialog) {} | ||
|
||
ngOnInit() { | ||
console.log(this.ubsNavLinks, 'ubsNavLinks'); | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. remove it |
||
} | ||
|
||
onResize() { | ||
this.screenWidth = window.innerWidth; | ||
} | ||
|
||
public openAboutServicePopUp(): void { | ||
public openAboutServicePopUp(event: Event): void { | ||
event.preventDefault(); | ||
const matDialogRef = this.dialog.open(UbsPickUpServicePopUpComponent, { | ||
hasBackdrop: true, | ||
closeOnNavigation: true, | ||
|
@@ -45,6 +50,6 @@ export class UbsFooterComponent { | |
|
||
public onPressEnter(event: KeyboardEvent): void { | ||
event.preventDefault(); | ||
this.openAboutServicePopUp(); | ||
this.openAboutServicePopUp(event); | ||
} | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
remove console.log
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
removed all console.logs