-
Notifications
You must be signed in to change notification settings - Fork 22
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
Trib 263 #100
Trib 263 #100
Conversation
function to details-page.ts that prints a message in console.
@@ -2,6 +2,7 @@ import {Component, OnInit} from "@angular/core"; | |||
import {ActivatedRoute} from "@angular/router"; | |||
import { Router} from "@angular/router"; | |||
import { ConnectModelService } from '../_services/connect.model.service'; | |||
import { AlertService } from "../_services/alert/alert.service"; |
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.
You'll want to import the original alert.service, rather than making a copy of it.
src/app/pages/connect-page/connection-details/connection-details.page.ts
Show resolved
Hide resolved
|
||
onRemoveBtnClick() { | ||
let self = this; | ||
this._alertService.show({ |
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 proper indenting. Look at other code/classes to see how it's done in other classes.
My first free day I will work on making the appointed changes.
…On Sunday, April 28th, 2024 at 3:32 PM, Johnathan James ***@***.***> wrote:
@haxwell commented on this pull request.
---------------------------------------------------------------
In [src/app/pages/connect-page/connection-details/connection-details.page.ts](#100 (comment)):
> @@ -29,7 +31,19 @@ export class ConnectionDetailsPage implements OnInit{
// self.navigateTo('/list-connections');
// }
// }
-
+ onRemoveBtnClick() {
There should be a blank line between any class level functions, and any comments that do not apply to what follows them (in this case, the commented out method/function (ending at line 33) does not relate to the onRemoveBtnClick() function. Add a blank line.
---------------------------------------------------------------
In [src/app/pages/connect-page/connection-details/connection-details.page.ts](#100 (comment)):
> @@ -29,7 +31,19 @@ export class ConnectionDetailsPage implements OnInit{
// self.navigateTo('/list-connections');
// }
// }
-
+ onRemoveBtnClick() {
+ let self = this;
+ this._alertService.show({
Use proper indenting. Look at other code/classes to see how it's done in other classes.
—
Reply to this email directly, [view it on GitHub](#100 (review)), or [unsubscribe](https://github.com/notifications/unsubscribe-auth/BIB2IF4NCK6CXWY64ABKQYDY7VMGPAVCNFSM6AAAAABG3RYDHGVHI2DSMVQWIX3LMV43YUDVNRWFEZLROVSXG5CSMV3GSZLXHMZDAMRXGM2DENZZGU).
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
This looks good! Clear up the conflict there, and we can merge! |
Added an alert to the "remove" button. To do this I had to copy the "alert" folder from src/app/_services and paste it into src/app/pages/connect-page/_services. Also I had to modify the "onRemoveBtnClick" function in connection-details.page.ts. I also added a type to connection-details.page.ts and imported from "../_services/alert/alert.service."