diff options
author | Chocobozzz <me@florianbigard.com> | 2023-07-12 10:37:59 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2023-07-12 10:37:59 +0200 |
commit | 88cde4392a27d5d37685a471f9bf83d537282c43 (patch) | |
tree | 531b8bf3c93de538987e563178dab90fda353b1d /client/src/app/shared/shared-instance | |
parent | 97f57e928fafb715d0763e97c7a3e6fd454a0bfc (diff) | |
parent | ed22eaabfac0d53550cd838c12b7d80e01bcc7b5 (diff) | |
download | PeerTube-88cde4392a27d5d37685a471f9bf83d537282c43.tar.gz PeerTube-88cde4392a27d5d37685a471f9bf83d537282c43.tar.zst PeerTube-88cde4392a27d5d37685a471f9bf83d537282c43.zip |
Merge branch 'release/5.2.0' into develop
Diffstat (limited to 'client/src/app/shared/shared-instance')
-rw-r--r-- | client/src/app/shared/shared-instance/instance-about-accordion.component.html | 8 | ||||
-rw-r--r-- | client/src/app/shared/shared-instance/instance-about-accordion.component.ts | 8 |
2 files changed, 12 insertions, 4 deletions
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.html b/client/src/app/shared/shared-instance/instance-about-accordion.component.html index 5c679685b..5d27bc437 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.html +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.html | |||
@@ -3,7 +3,7 @@ | |||
3 | <div *ngIf="displayInstanceShortDescription" class="instance-short-description ellipsis-multiline-3">{{ about?.instance.shortDescription }}</div> | 3 | <div *ngIf="displayInstanceShortDescription" class="instance-short-description ellipsis-multiline-3">{{ about?.instance.shortDescription }}</div> |
4 | 4 | ||
5 | <div ngbAccordion #accordion="ngbAccordion" [closeOthers]="true"> | 5 | <div ngbAccordion #accordion="ngbAccordion" [closeOthers]="true"> |
6 | <div ngbAccordionItem *ngIf="panels.features" id="instance-features"> | 6 | <div ngbAccordionItem="instance-features" *ngIf="panels.features"> |
7 | <div ngbAccordionHeader> | 7 | <div ngbAccordionHeader> |
8 | <button ngbAccordionButton> | 8 | <button ngbAccordionButton> |
9 | <my-global-icon iconName="playlists"></my-global-icon> | 9 | <my-global-icon iconName="playlists"></my-global-icon> |
@@ -53,7 +53,7 @@ | |||
53 | </div> | 53 | </div> |
54 | </div> | 54 | </div> |
55 | 55 | ||
56 | <div ngbAccordionItem *ngIf="termsPanel" id="terms"> | 56 | <div ngbAccordionItem="terms" *ngIf="termsPanel"> |
57 | <div ngbAccordionHeader> | 57 | <div ngbAccordionHeader> |
58 | <button ngbAccordionButton> | 58 | <button ngbAccordionButton> |
59 | <my-global-icon iconName="playlists"></my-global-icon> | 59 | <my-global-icon iconName="playlists"></my-global-icon> |
@@ -71,7 +71,7 @@ | |||
71 | </div> | 71 | </div> |
72 | </div> | 72 | </div> |
73 | 73 | ||
74 | <div ngbAccordionItem *ngIf="moderationPanel" id="moderation-information"> | 74 | <div ngbAccordionItem="moderation-information" *ngIf="moderationPanel"> |
75 | <div ngbAccordionHeader> | 75 | <div ngbAccordionHeader> |
76 | <button ngbAccordionButton> | 76 | <button ngbAccordionButton> |
77 | <my-global-icon iconName="playlists"></my-global-icon> | 77 | <my-global-icon iconName="playlists"></my-global-icon> |
@@ -89,7 +89,7 @@ | |||
89 | </div> | 89 | </div> |
90 | </div> | 90 | </div> |
91 | 91 | ||
92 | <div ngbAccordionItem *ngIf="codeOfConductPanel" id="code-of-conduct"> | 92 | <div ngbAccordionItem="code-of-conduct" *ngIf="codeOfConductPanel"> |
93 | <div ngbAccordionHeader> | 93 | <div ngbAccordionHeader> |
94 | <button ngbAccordionButton> | 94 | <button ngbAccordionButton> |
95 | <my-global-icon iconName="playlists"></my-global-icon> | 95 | <my-global-icon iconName="playlists"></my-global-icon> |
diff --git a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts index e299a64a3..a7c521876 100644 --- a/client/src/app/shared/shared-instance/instance-about-accordion.component.ts +++ b/client/src/app/shared/shared-instance/instance-about-accordion.component.ts | |||
@@ -62,6 +62,14 @@ export class InstanceAboutAccordionComponent implements OnInit { | |||
62 | this.pluginPanels = await this.hookService.wrapObject([], this.pluginScope, this.pluginHook) | 62 | this.pluginPanels = await this.hookService.wrapObject([], this.pluginScope, this.pluginHook) |
63 | } | 63 | } |
64 | 64 | ||
65 | expandTerms () { | ||
66 | this.accordion.expand('terms') | ||
67 | } | ||
68 | |||
69 | expandCodeOfConduct () { | ||
70 | this.accordion.expand('code-of-conduct') | ||
71 | } | ||
72 | |||
65 | getAdministratorsPanel () { | 73 | getAdministratorsPanel () { |
66 | if (!this.about) return false | 74 | if (!this.about) return false |
67 | if (!this.panels.administrators) return false | 75 | if (!this.panels.administrators) return false |