-
Notifications
You must be signed in to change notification settings - Fork 51
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
Add dialog for confirmation of delete #153 Part 3 #170
base: master
Are you sure you want to change the base?
Conversation
Please add the screenshot of the changes to the PR description.
…On Mon, Feb 25, 2019, 8:22 AM Sunitha Kandalam ***@***.***> wrote:
Fixed #153 <#153>
part 3 New component confirm in shared module.
Files changed / created:
src/app/profile/user/details/details.component.html.
src/app/profile/user/details/details.component.scss.
src/app/profile/user/details/details.component.ts.
src/app/profile/user/user.module.ts.
src/app/shared/confirm/confirm.component.html.
src/app/shared/confirm/confirm.component.scss.
src/app/shared/confirm/confirm.component.spec.ts.
src/app/shared/confirm/confirm.component.ts.
src/app/shared/idea-card/idea-card.component.ts.
src/app/shared/shared.module.ts.
------------------------------
You can view, comment on, or merge this pull request online at:
#170
Commit Summary
- new confirmation component
File Changes
- *M* src/app/profile/user/details/details.component.html
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-0>
(175)
- *M* src/app/profile/user/details/details.component.scss
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-1>
(21)
- *M* src/app/profile/user/details/details.component.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-2>
(71)
- *M* src/app/profile/user/user.module.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-3>
(13)
- *A* src/app/shared/confirm/confirm.component.html
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-4>
(7)
- *A* src/app/shared/confirm/confirm.component.scss
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-5>
(44)
- *A* src/app/shared/confirm/confirm.component.spec.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-6>
(24)
- *A* src/app/shared/confirm/confirm.component.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-7>
(21)
- *M* src/app/shared/idea-card/idea-card.component.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-8>
(5)
- *M* src/app/shared/shared.module.ts
<https://github.com/Cynthesize/cynthesize-frontend/pull/170/files#diff-9>
(20)
Patch Links:
- https://github.com/Cynthesize/cynthesize-frontend/pull/170.patch
- https://github.com/Cynthesize/cynthesize-frontend/pull/170.diff
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#170>, or mute the
thread
<https://github.com/notifications/unsubscribe-auth/ArvXZ4S9Kr1U0Wlf8Dqi-jSz4yQdm8Ndks5vQ0_agaJpZM4bO--T>
.
|
@@ -7,13 +7,24 @@ | |||
<div class="container"> | |||
<div class="profile-header-info__user-card"> | |||
<div class="profile-header-info__photo"> | |||
<cl-image height="150" crop="scale" public-id="{{ user.profile_pic }}" secure="true"></cl-image> | |||
<cl-image | |||
height="150" |
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.
Please remove this auto-linting, else it will change multiple time to and fro.
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.
Can you please help me understand auto-linting? I use visual studio code, so should I disable something on it or do I need to change the code in details.component.html? I have disabled the lint on this workspace on my editor.
Are you sure you want to delete? | ||
</p> | ||
<button class="btn" (click)="sendConfirmation(true)">YES</button> | ||
<button class="btn" (click)="sendConfirmation(false)">NO</button> |
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.
Use mat-action to take yes or no input. Eg:
<div mat-dialog-actions>
<button mat-button (click)="onNoClick()">No Thanks</button>
<button mat-button [mat-dialog-close]="data.animal" cdkFocusInitial>Ok</button>
</div>
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.
Made the changes in the code.
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.
Left some comments, rest looks good. 👍
Fixed #153 part 3 New component confirm in shared module.
Files changed / created:
src/app/profile/user/details/details.component.html.
src/app/profile/user/details/details.component.scss.
src/app/profile/user/details/details.component.ts.
src/app/profile/user/user.module.ts.
src/app/shared/confirm/confirm.component.html.
src/app/shared/confirm/confirm.component.scss.
src/app/shared/confirm/confirm.component.spec.ts.
src/app/shared/confirm/confirm.component.ts.
src/app/shared/idea-card/idea-card.component.ts.
src/app/shared/shared.module.ts.