diff options
author | Chocobozzz <me@florianbigard.com> | 2019-07-11 14:40:19 +0200 |
---|---|---|
committer | Chocobozzz <chocobozzz@cpy.re> | 2019-07-24 10:58:16 +0200 |
commit | dba85a1e9e9f603ba52e1ea42deaf3fdd799b1d8 (patch) | |
tree | 7695023d90b78f972abafc718346c50264587ff5 /client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html | |
parent | d00dc28dd73ad9dd419d5a5ac6ac747cefbc6e8b (diff) | |
download | PeerTube-dba85a1e9e9f603ba52e1ea42deaf3fdd799b1d8.tar.gz PeerTube-dba85a1e9e9f603ba52e1ea42deaf3fdd799b1d8.tar.zst PeerTube-dba85a1e9e9f603ba52e1ea42deaf3fdd799b1d8.zip |
WIP plugins: add plugin settings/uninstall in client
Diffstat (limited to 'client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html')
-rw-r--r-- | client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html index e69de29bb..aae08b94d 100644 --- a/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html +++ b/client/src/app/+admin/plugins/plugin-show-installed/plugin-show-installed.component.html | |||
@@ -0,0 +1,26 @@ | |||
1 | <ng-container *ngIf="plugin"> | ||
2 | |||
3 | <h2> | ||
4 | <ng-container>{{ pluginTypeLabel }}</ng-container> | ||
5 | {{ plugin.name }} | ||
6 | </h2> | ||
7 | |||
8 | <form *ngIf="hasRegisteredSettings()" role="form" (ngSubmit)="formValidated()" [formGroup]="form"> | ||
9 | <div class="form-group" *ngFor="let setting of registeredSettings"> | ||
10 | <label [attr.for]="setting.name">{{ setting.label }}</label> | ||
11 | |||
12 | <input *ngIf="setting.type === 'input'" type="text" [id]="setting.name" [formControlName]="setting.name" /> | ||
13 | |||
14 | <div *ngIf="formErrors[setting.name]" class="form-error"> | ||
15 | {{ formErrors[setting.name] }} | ||
16 | </div> | ||
17 | </div> | ||
18 | |||
19 | <input type="submit" i18n value="Update plugin settings" [disabled]="!form.valid"> | ||
20 | </form> | ||
21 | |||
22 | <div *ngIf="!hasRegisteredSettings()" i18n class="no-settings"> | ||
23 | This {{ pluginTypeLabel }} does not have settings. | ||
24 | </div> | ||
25 | |||
26 | </ng-container> | ||