24 lines
771 B
TypeScript
24 lines
771 B
TypeScript
import { CommonModule } from "@angular/common";
|
|
import { Component, EventEmitter, Input, Output } from "@angular/core";
|
|
import { MatRippleModule } from "@angular/material/core";
|
|
import { MatProgressSpinnerModule } from "@angular/material/progress-spinner";
|
|
|
|
@Component({
|
|
selector: 'app-submit-button',
|
|
standalone: true,
|
|
templateUrl: 'submit-button.component.html',
|
|
styleUrl: 'submit-button.component.scss',
|
|
imports: [
|
|
CommonModule,
|
|
MatRippleModule,
|
|
MatProgressSpinnerModule
|
|
]
|
|
})
|
|
export class SubmitButtonComponent {
|
|
@Input() requestPending: boolean = false;
|
|
@Input() label: string = '';
|
|
@Input() disabled: boolean = false;
|
|
@Input() color?: 'secondary';
|
|
@Output() click = new EventEmitter<void>();
|
|
}
|
|
|