Skip to content

Commit

Permalink
Communicating to the user if the server is not available (#171)
Browse files Browse the repository at this point in the history
* Communicating to the user if  the server is not available

* Changes made based on the subcribe method

* The editor is disabled + new placeholder text

* Updated the README

* Reverting json

* Shorter solution
  • Loading branch information
Kledis98 committed May 18, 2023
1 parent 49458f8 commit b0e2999
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ which the actual name is obviously optional.

- AndersonCeci (Anderson Ceci) - developer
- AndiBraimllari (Andi Braimllari) - core developer
- Kledis98 ( Kledis Myrtollari) - developer

To get started with contributing, simply create an [issue](https://github.com/OpenCovenant/quill/issues) if there's a
concern to be addressed, or a [pull request](https://github.com/OpenCovenant/quill/pulls) if there are changes you'd
Expand Down
14 changes: 11 additions & 3 deletions src/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,9 +68,17 @@ export class HomeComponent implements AfterViewInit, OnDestroy {
) {
this.initializeURLs();
// should any other call be made here? probably not... actually even this should be removed soon
this.http.get(this.pingURL).subscribe(() => {
console.log('pinging server...');
});
this.http.get(this.pingURL).subscribe(
() => {
console.log('pinging server...');
},
() => {
(document.getElementById('editor') as any)!.contentEditable =
false;
document.getElementById('editor-placeholder')!.innerText =
'Fatkeqësisht kemi një problem me serverat. Ju kërkojmë ndjesë, ndërsa kërkojme për një zgjidhje.';
}
);
}

ngAfterViewInit(): void {
Expand Down

0 comments on commit b0e2999

Please sign in to comment.