aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src/app/shared
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2022-09-16 10:02:46 +0200
committerChocobozzz <me@florianbigard.com>2022-09-16 10:02:46 +0200
commite1eada8bae03d06dcd9549c06c67392a55a0fc96 (patch)
tree3d832feb2351ad8853386681fb07a25ae116c937 /client/src/app/shared
parent81ed2de85c4d1cedcb5b4d58f3bfa39c3601ed2a (diff)
downloadPeerTube-e1eada8bae03d06dcd9549c06c67392a55a0fc96.tar.gz
PeerTube-e1eada8bae03d06dcd9549c06c67392a55a0fc96.tar.zst
PeerTube-e1eada8bae03d06dcd9549c06c67392a55a0fc96.zip
Disable uninstall button on plugin uninstallation
Diffstat (limited to 'client/src/app/shared')
-rw-r--r--client/src/app/shared/shared-main/buttons/delete-button.component.ts7
1 files changed, 6 insertions, 1 deletions
diff --git a/client/src/app/shared/shared-main/buttons/delete-button.component.ts b/client/src/app/shared/shared-main/buttons/delete-button.component.ts
index 1cab10803..0ee7d3757 100644
--- a/client/src/app/shared/shared-main/buttons/delete-button.component.ts
+++ b/client/src/app/shared/shared-main/buttons/delete-button.component.ts
@@ -3,13 +3,18 @@ import { Component, Input, OnInit } from '@angular/core'
3@Component({ 3@Component({
4 selector: 'my-delete-button', 4 selector: 'my-delete-button',
5 template: ` 5 template: `
6 <my-button icon="delete" className="grey-button" [label]="label" [title]="title" [responsiveLabel]="responsiveLabel"></my-button> 6 <my-button
7 icon="delete" className="grey-button"
8 [disabled]="disabled" [label]="label" [title]="title"
9 [responsiveLabel]="responsiveLabel"
10 ></my-button>
7 ` 11 `
8}) 12})
9export class DeleteButtonComponent implements OnInit { 13export class DeleteButtonComponent implements OnInit {
10 @Input() label: string 14 @Input() label: string
11 @Input() title: string 15 @Input() title: string
12 @Input() responsiveLabel = false 16 @Input() responsiveLabel = false
17 @Input() disabled: boolean
13 18
14 ngOnInit () { 19 ngOnInit () {
15 if (this.label === undefined && !this.title) { 20 if (this.label === undefined && !this.title) {