diff options
author | Chocobozzz <me@florianbigard.com> | 2022-07-15 15:30:14 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2022-07-18 11:37:18 +0200 |
commit | 42b40636991b97fe818007fab19091764fc5db73 (patch) | |
tree | db431787c06ce898d22e91ff771f795219274fc6 /client/src/app/modal/admin-welcome-modal.component.ts | |
parent | 654d4ede7fa4d0faa71e49bcfab6b65a686397b2 (diff) | |
download | PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.gz PeerTube-42b40636991b97fe818007fab19091764fc5db73.tar.zst PeerTube-42b40636991b97fe818007fab19091764fc5db73.zip |
Add ability for client to create server logs
Diffstat (limited to 'client/src/app/modal/admin-welcome-modal.component.ts')
-rw-r--r-- | client/src/app/modal/admin-welcome-modal.component.ts | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/client/src/app/modal/admin-welcome-modal.component.ts b/client/src/app/modal/admin-welcome-modal.component.ts index 3679f0847..7a9b89d3d 100644 --- a/client/src/app/modal/admin-welcome-modal.component.ts +++ b/client/src/app/modal/admin-welcome-modal.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { Component, ElementRef, ViewChild } from '@angular/core' | 1 | import { Component, ElementRef, ViewChild } from '@angular/core' |
2 | import { Notifier, User, UserService } from '@app/core' | 2 | import { Notifier, User, UserService } from '@app/core' |
3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' | 3 | import { NgbModal } from '@ng-bootstrap/ng-bootstrap' |
4 | import { logger } from '@root-helpers/logger' | ||
4 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' | 5 | import { peertubeLocalStorage } from '@root-helpers/peertube-web-storage' |
5 | 6 | ||
6 | @Component({ | 7 | @Component({ |
@@ -42,7 +43,7 @@ export class AdminWelcomeModalComponent { | |||
42 | 43 | ||
43 | this.userService.updateMyProfile({ noWelcomeModal: true }) | 44 | this.userService.updateMyProfile({ noWelcomeModal: true }) |
44 | .subscribe({ | 45 | .subscribe({ |
45 | next: () => console.log('We will not open the welcome modal again.'), | 46 | next: () => logger.info('We will not open the welcome modal again.'), |
46 | 47 | ||
47 | error: err => this.notifier.error(err.message) | 48 | error: err => this.notifier.error(err.message) |
48 | }) | 49 | }) |