From e1eada8bae03d06dcd9549c06c67392a55a0fc96 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 16 Sep 2022 10:02:46 +0200 Subject: Disable uninstall button on plugin uninstallation --- .../src/app/shared/shared-main/buttons/delete-button.component.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'client/src/app/shared/shared-main') 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' @Component({ selector: 'my-delete-button', template: ` - + ` }) export class DeleteButtonComponent implements OnInit { @Input() label: string @Input() title: string @Input() responsiveLabel = false + @Input() disabled: boolean ngOnInit () { if (this.label === undefined && !this.title) { -- cgit v1.2.3