projects
/
oweals
/
peertube.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
allow limiting video-comments rss feeds to an account or video channel
[oweals/peertube.git]
/
client
/
src
/
app
/
modal
/
instance-config-warning-modal.component.ts
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 08d83f383456d1a14eea258a78ae3d3a606b08e4..1c90f190a0d55722cf573db87ad24eaeba6c1f7a 100644
(file)
--- 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 { 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 { NgbModal } from '@ng-bootstrap/ng-bootstrap'
import { About } from '@shared/models/server'
-import { UserService } from '@app/shared'
@Component({
selector: 'my-instance-config-warning-modal',
@Component({
selector: 'my-instance-config-warning-modal',
@@
-24,13
+23,18
@@
export class InstanceConfigWarningModalComponent {
show (about: About) {
this.about = about
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()
})
}
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(
private doNotOpenAgain () {
this.userService.updateMyProfile({ noInstanceConfigWarningModal: true })
.subscribe(