diff options
author | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-05-24 15:27:15 +0200 |
commit | d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d (patch) | |
tree | fa29fcfd704cbc56c7bc3e3e1c15d84ea0f4dc61 /client/src/app/shared/shared-instance | |
parent | 25ea1d85e155382367d11036617848fe69a1e6a4 (diff) | |
download | PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.gz PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.tar.zst PeerTube-d0fbc9fd0a29c37f3ff9b99030351e90b276fe7d.zip |
Fix lint
Diffstat (limited to 'client/src/app/shared/shared-instance')
-rw-r--r-- | client/src/app/shared/shared-instance/instance-features-table.component.html | 2 | ||||
-rw-r--r-- | client/src/app/shared/shared-instance/instance-features-table.component.ts | 8 |
2 files changed, 2 insertions, 8 deletions
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 205f2bc97..37f53b7c6 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="c-hand more-info" (click)="openQuickSettingsHighlight()">can be redefined by the users</div> | 14 | <span class="fs-7 fw-normal fst-italic">can be redefined by the users</span> |
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 c3df7c594..2e63f6c17 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 | |||
@@ -2,7 +2,6 @@ import { Component, OnInit } from '@angular/core' | |||
2 | import { ServerService } from '@app/core' | 2 | import { ServerService } from '@app/core' |
3 | import { prepareIcu } from '@app/helpers' | 3 | import { prepareIcu } from '@app/helpers' |
4 | import { ServerConfig } from '@shared/models' | 4 | import { ServerConfig } from '@shared/models' |
5 | import { PeertubeModalService } from '../shared-main/peertube-modal/peertube-modal.service' | ||
6 | 5 | ||
7 | @Component({ | 6 | @Component({ |
8 | selector: 'my-instance-features-table', | 7 | selector: 'my-instance-features-table', |
@@ -14,8 +13,7 @@ export class InstanceFeaturesTableComponent implements OnInit { | |||
14 | serverConfig: ServerConfig | 13 | serverConfig: ServerConfig |
15 | 14 | ||
16 | constructor ( | 15 | constructor ( |
17 | private serverService: ServerService, | 16 | private serverService: ServerService |
18 | private modalService: PeertubeModalService | ||
19 | ) { } | 17 | ) { } |
20 | 18 | ||
21 | get initialUserVideoQuota () { | 19 | get initialUserVideoQuota () { |
@@ -69,10 +67,6 @@ export class InstanceFeaturesTableComponent implements OnInit { | |||
69 | return this.serverService.getServerVersionAndCommit() | 67 | return this.serverService.getServerVersionAndCommit() |
70 | } | 68 | } |
71 | 69 | ||
72 | openQuickSettingsHighlight () { | ||
73 | this.modalService.openQuickSettingsSubject.next() | ||
74 | } | ||
75 | |||
76 | private getApproximateTime (seconds: number) { | 70 | private getApproximateTime (seconds: number) { |
77 | const hours = Math.floor(seconds / 3600) | 71 | const hours = Math.floor(seconds / 3600) |
78 | 72 | ||