diff options
Diffstat (limited to 'client/src/app/shared/shared-instance')
3 files changed, 11 insertions, 3 deletions
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.scss b/client/src/app/shared/shared-instance/instance-about-accordion.component.scss index 275600d60..2f6b420e3 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.scss +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.scss | |||
@@ -31,7 +31,7 @@ ngb-accordion ::ng-deep { | |||
31 | padding: 0; | 31 | padding: 0; |
32 | 32 | ||
33 | & + .collapse.show { | 33 | & + .collapse.show { |
34 | background-color: var(--submenuColor); | 34 | background-color: var(--submenuBackgroundColor); |
35 | } | 35 | } |
36 | } | 36 | } |
37 | } | 37 | } |
diff --git a/client/src/app/shared/shared-instance/instance-features-table.component.html b/client/src/app/shared/shared-instance/instance-features-table.component.html index ce2557147..d505b6739 100644 --- a/client/src/app/shared/shared-instance/instance-features-table.component.html +++ b/client/src/app/shared/shared-instance/instance-features-table.component.html | |||
@@ -11,7 +11,7 @@ | |||
11 | <tr> | 11 | <tr> |
12 | <th i18n class="label" scope="row"> | 12 | <th i18n class="label" scope="row"> |
13 | <div>Default NSFW/sensitive videos policy</div> | 13 | <div>Default NSFW/sensitive videos policy</div> |
14 | <div class="more-info">can be redefined by the users</div> | 14 | <div class="c-hand more-info" (click)="openQuickSettingsHighlight()">can be redefined by the users</div> |
15 | </th> | 15 | </th> |
16 | 16 | ||
17 | <td class="value">{{ buildNSFWLabel() }}</td> | 17 | <td class="value">{{ buildNSFWLabel() }}</td> |
diff --git a/client/src/app/shared/shared-instance/instance-features-table.component.ts b/client/src/app/shared/shared-instance/instance-features-table.component.ts index 0166157f9..c3b3dfdfd 100644 --- a/client/src/app/shared/shared-instance/instance-features-table.component.ts +++ b/client/src/app/shared/shared-instance/instance-features-table.component.ts | |||
@@ -1,6 +1,7 @@ | |||
1 | import { Component, OnInit } from '@angular/core' | 1 | import { Component, OnInit } from '@angular/core' |
2 | import { ServerService } from '@app/core' | 2 | import { ServerService } from '@app/core' |
3 | import { ServerConfig } from '@shared/models' | 3 | import { ServerConfig } from '@shared/models' |
4 | import { PeertubeModalService } from '../shared-main/peertube-modal/peertube-modal.service' | ||
4 | 5 | ||
5 | @Component({ | 6 | @Component({ |
6 | selector: 'my-instance-features-table', | 7 | selector: 'my-instance-features-table', |
@@ -11,7 +12,10 @@ export class InstanceFeaturesTableComponent implements OnInit { | |||
11 | quotaHelpIndication = '' | 12 | quotaHelpIndication = '' |
12 | serverConfig: ServerConfig | 13 | serverConfig: ServerConfig |
13 | 14 | ||
14 | constructor (private serverService: ServerService) { } | 15 | constructor ( |
16 | private serverService: ServerService, | ||
17 | private modalService: PeertubeModalService | ||
18 | ) { } | ||
15 | 19 | ||
16 | get initialUserVideoQuota () { | 20 | get initialUserVideoQuota () { |
17 | return this.serverConfig.user.videoQuota | 21 | return this.serverConfig.user.videoQuota |
@@ -56,6 +60,10 @@ export class InstanceFeaturesTableComponent implements OnInit { | |||
56 | return this.serverService.getServerVersionAndCommit() | 60 | return this.serverService.getServerVersionAndCommit() |
57 | } | 61 | } |
58 | 62 | ||
63 | openQuickSettingsHighlight () { | ||
64 | this.modalService.openQuickSettingsSubject.next() | ||
65 | } | ||
66 | |||
59 | private getApproximateTime (seconds: number) { | 67 | private getApproximateTime (seconds: number) { |
60 | const hours = Math.floor(seconds / 3600) | 68 | const hours = Math.floor(seconds / 3600) |
61 | let pluralSuffix = '' | 69 | let pluralSuffix = '' |