perbaikan master edit
This commit is contained in:
@@ -135,7 +135,7 @@ export class MasterRoleComponent {
|
||||
(result) => {
|
||||
console.log(result);
|
||||
if (result) {
|
||||
if (this.filteredRows.some(value => value.name.toLowerCase() === result.name.toLowerCase())) {
|
||||
if (this.filteredRows.some(value => value.name.toLowerCase() === result.name.toLowerCase() && value.status === result.status)) {
|
||||
this.toastr.error("Warning", "Data yang anda masukan double.", {
|
||||
timeOut: 5000,
|
||||
closeButton: true,
|
||||
|
||||
Reference in New Issue
Block a user