X-Git-Url: https://git.librecmc.org/?a=blobdiff_plain;f=client%2Fsrc%2Fapp%2Fmodal%2Finstance-config-warning-modal.component.ts;h=1c90f190a0d55722cf573db87ad24eaeba6c1f7a;hb=HEAD;hp=08d83f383456d1a14eea258a78ae3d3a606b08e4;hpb=589d9f55f6f3f0d069d4bbb207d3d20769cc4ded;p=oweals%2Fpeertube.git diff --git a/client/src/app/modal/instance-config-warning-modal.component.ts b/client/src/app/modal/instance-config-warning-modal.component.ts index 08d83f383..1c90f190a 100644 --- a/client/src/app/modal/instance-config-warning-modal.component.ts +++ b/client/src/app/modal/instance-config-warning-modal.component.ts @@ -1,8 +1,7 @@ import { Component, ElementRef, ViewChild } from '@angular/core' -import { Notifier } from '@app/core' +import { Notifier, UserService } from '@app/core' import { NgbModal } from '@ng-bootstrap/ng-bootstrap' import { About } from '@shared/models/server' -import { UserService } from '@app/shared' @Component({ selector: 'my-instance-config-warning-modal', @@ -24,13 +23,18 @@ export class InstanceConfigWarningModalComponent { show (about: About) { this.about = about - const ref = this.modalService.open(this.modal) + const ref = this.modalService.open(this.modal, { centered: true }) ref.result.finally(() => { if (this.stopDisplayModal === true) this.doNotOpenAgain() }) } + isDefaultShortDescription (description: string) { + return description === 'PeerTube, a federated (ActivityPub) video streaming platform using P2P (BitTorrent) directly ' + + 'in the web browser with WebTorrent and Angular.' + } + private doNotOpenAgain () { this.userService.updateMyProfile({ noInstanceConfigWarningModal: true }) .subscribe(