-
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Error Response Handling fixed #9
- Loading branch information
1 parent
6d56990
commit 1981cfb
Showing
22 changed files
with
231 additions
and
53 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
28 changes: 28 additions & 0 deletions
28
src/KiteHelper/ClientApp/src/app/shared/error-dialog/error-dialog.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<nb-card> | ||
<nb-card-header> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
{{errorTitle}} | ||
</div> | ||
</div> | ||
</nb-card-header> | ||
<nb-card-body> | ||
|
||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<label class="label" for="error-message">Message:</label> | ||
<p style="color: red;" id="error-message">{{errorMessage}}</p> | ||
</div> | ||
</div> | ||
</nb-card-body> | ||
<nb-card-footer> | ||
<div class="row"> | ||
<div class="col-lg-12"> | ||
<button nbButton fullWidth status="warning" size="large" (click)="copyToClipboard();"> | ||
<nb-icon icon="copy-outline"></nb-icon> | ||
Copy Message | ||
</button> | ||
</div> | ||
</div> | ||
</nb-card-footer> | ||
</nb-card> |
23 changes: 23 additions & 0 deletions
23
src/KiteHelper/ClientApp/src/app/shared/error-dialog/error-dialog.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,23 @@ | ||
import { Component, Input, OnInit } from '@angular/core'; | ||
import { Clipboard } from '@angular/cdk/clipboard'; | ||
|
||
@Component({ | ||
selector: 'app-error-dialog', | ||
templateUrl: './error-dialog.component.html', | ||
styleUrls: ['./error-dialog.component.css'], | ||
}) | ||
export class ErrorDialogComponent implements OnInit { | ||
|
||
@Input() public errorTitle: string; | ||
@Input() public errorMessage: string; | ||
|
||
constructor(private clipboard: Clipboard) { } | ||
|
||
ngOnInit(): void { | ||
} | ||
|
||
copyToClipboard(): void { | ||
this.clipboard.copy(this.errorMessage); | ||
} | ||
|
||
} |
File renamed without changes.
File renamed without changes.
File renamed without changes.
6 changes: 4 additions & 2 deletions
6
...src/app/dashboard/shared/shared.module.ts → ...ClientApp/src/app/shared/shared.module.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
2 changes: 1 addition & 1 deletion
2
...ding-symbol/trading-symbol.component.scss → ...ding-symbol/trading-symbol.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
File renamed without changes.
Oops, something went wrong.