diff options
Diffstat (limited to 'client/src/app/shared')
-rw-r--r-- | client/src/app/shared/shared-main/buttons/delete-button.component.ts | 7 |
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 | }) |
9 | export class DeleteButtonComponent implements OnInit { | 13 | export 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) { |