inputLabel = ''
inputValue = ''
+ confirmButtonText = ''
constructor (private confirmService: ConfirmService) {
// Empty
}
this.confirmService.showConfirm.subscribe(
- ({ title, message, expectedInputValue, inputLabel }) => {
+ ({ title, message, expectedInputValue, inputLabel, confirmButtonText }) => {
this.title = title
this.message = message
this.inputLabel = inputLabel
this.expectedInputValue = expectedInputValue
+ this.confirmButtonText = confirmButtonText || 'Confirm'
+
this.showModal()
}
)