perrbaikan master

This commit is contained in:
Fuzi_fauzia 2024-07-03 13:25:25 +07:00
parent a1b259ac9f
commit 4b023b2527
9 changed files with 17 additions and 8 deletions

View File

@ -151,7 +151,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === 2 ? "Aktif" : "Tidak Aktif" }}
{{ value === 2 ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>

View File

@ -105,7 +105,7 @@
ngx-datatable-cell-template
let-value="value"
>
<p style="color: #ffffff">{{ value === "2" ? "Aktif" : "Tidak Aktif" }}</p>
<p style="color: #ffffff">{{ value === "2" ? "Aktif" : "Nonaktif" }}</p>
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column

View File

@ -72,7 +72,11 @@ export class MasterCategoryComponent implements OnInit {
}
rowContainsSearchTerm(row: any): boolean {
console.log(row);
const searchTermLC = this.searchTerm.toLowerCase();
console.log(searchTermLC);
return Object.values(row).some(
(value) =>
value !== null && value.toString().toLowerCase().includes(searchTermLC)

View File

@ -90,7 +90,7 @@
ngx-datatable-cell-template
let-value="value"
>
<p style="color: #ffffff">{{ value === "2" ? "Aktif" : "Tidak Aktif" }}</p>
<p style="color: #ffffff">{{ value === "2" ? "Aktif" : "Nonaktif" }}</p>
</ng-template>
</ngx-datatable-column>
<ngx-datatable-column

View File

@ -23,6 +23,11 @@
<div class="col-md-6 text-right">
<button
class="btn btn-secondary"
style="
color: #000000 !important;
border-color: #bef264 !important;
background-color: #bef264 !important;
"
(click)="openAddMasterModal()"
>
<i class="feather ft-plus"></i>&nbsp; Add new master
@ -81,7 +86,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === "2" ? "Aktif" : "Tidak Aktif" }}
{{ value === "2" ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>

View File

@ -95,7 +95,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === "2" ? "Aktif" : "Tidak Aktif" }}
{{ value === "2" ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>

View File

@ -91,7 +91,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === "2" ? "Aktif" : "Tidak Aktif" }}
{{ value === "2" ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>

View File

@ -91,7 +91,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === "2" ? "Aktif" : "Tidak Aktif" }}
{{ value === "2" ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>

View File

@ -91,7 +91,7 @@
let-value="value"
>
<p style="color: #ffffff">
{{ value === "2" ? "Aktif" : "Tidak Aktif" }}
{{ value === "2" ? "Aktif" : "Nonaktif" }}
</p>
</ng-template>
</ngx-datatable-column>