aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared/shared-forms
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2023-07-27 11:44:31 +0200
committerChocobozzz <me@florianbigard.com>2023-07-27 14:17:12 +0200
commitf18003d0ac5c3fc6ec8de2a89102d1e1e89182df (patch)
tree0b3baa5658478607f3417fe7c747cc3a782f15b3 /client/src/app/shared/shared-forms
parentf5af5feb5a41eb6e2796e480402106b55bd10f04 (diff)
downloadPeerTube-f18003d0ac5c3fc6ec8de2a89102d1e1e89182df.tar.gz
PeerTube-f18003d0ac5c3fc6ec8de2a89102d1e1e89182df.tar.zst
PeerTube-f18003d0ac5c3fc6ec8de2a89102d1e1e89182df.zip
Improve runner management
* Add ability to remove runner jobs * Add runner job state quick filter * Merge registration tokens and runners tables in the same page * Add copy button to copy registration token
Diffstat (limited to 'client/src/app/shared/shared-forms')
-rw-r--r--client/src/app/shared/shared-forms/advanced-input-filter.component.scss1
-rw-r--r--client/src/app/shared/shared-forms/input-text.component.html11
-rw-r--r--client/src/app/shared/shared-forms/input-text.component.ts4
3 files changed, 5 insertions, 11 deletions
diff --git a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss
index 4efbeb85d..f5438ffdb 100644
--- a/client/src/app/shared/shared-forms/advanced-input-filter.component.scss
+++ b/client/src/app/shared/shared-forms/advanced-input-filter.component.scss
@@ -33,6 +33,5 @@ my-global-icon {
33 33
34div[role=menu] { 34div[role=menu] {
35 max-height: 50vh; 35 max-height: 50vh;
36 min-height: 200px;
37 overflow: auto; 36 overflow: auto;
38} 37}
diff --git a/client/src/app/shared/shared-forms/input-text.component.html b/client/src/app/shared/shared-forms/input-text.component.html
index abb53a085..4747e2f8f 100644
--- a/client/src/app/shared/shared-forms/input-text.component.html
+++ b/client/src/app/shared/shared-forms/input-text.component.html
@@ -11,13 +11,12 @@
11 <my-global-icon *ngIf="!show" iconName="eye-close"></my-global-icon> 11 <my-global-icon *ngIf="!show" iconName="eye-close"></my-global-icon>
12 </button> 12 </button>
13 13
14 <button 14 <my-copy-button
15 *ngIf="withCopy" [cdkCopyToClipboard]="input.value" (click)="activateCopiedMessage()" type="button" 15 *ngIf="withCopy" [value]="input.value" i18n-notification notification="Copied"
16 class="btn btn-outline-secondary text-uppercase" i18n-title title="Copy" 16 [isInputGroup]="true" i18n
17 > 17 >
18 <my-global-icon iconName="copy"></my-global-icon> 18 COPY
19 <span class="copy-text">Copy</span> 19 </my-copy-button>
20 </button>
21</div> 20</div>
22 21
23<div *ngIf="formError" class="form-error">{{ formError }}</div> 22<div *ngIf="formError" class="form-error">{{ formError }}</div>
diff --git a/client/src/app/shared/shared-forms/input-text.component.ts b/client/src/app/shared/shared-forms/input-text.component.ts
index aa4a1cba8..be03f25b9 100644
--- a/client/src/app/shared/shared-forms/input-text.component.ts
+++ b/client/src/app/shared/shared-forms/input-text.component.ts
@@ -46,10 +46,6 @@ export class InputTextComponent implements ControlValueAccessor {
46 this.show = !this.show 46 this.show = !this.show
47 } 47 }
48 48
49 activateCopiedMessage () {
50 this.notifier.success($localize`Copied`)
51 }
52
53 propagateChange = (_: any) => { /* empty */ } 49 propagateChange = (_: any) => { /* empty */ }
54 50
55 writeValue (value: string) { 51 writeValue (value: string) {