Commit a3df138d by Natthaphat

เพิ่มเงื่อนไขต้องเพิ่มข้อมูลถึงจะบันทึกได้

parent 6c349735
......@@ -189,7 +189,8 @@
data-hs-overlay="#modal-detail">
{{'Cancel' | translate}}
</button>
<button type="button" (click)="save()" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
<button type="button" (click)="save()" [class.ti-btn-disabled]="!category.categoryId||!category.thName||!category.engName"
[disabled]="!category.categoryId||!category.thName||!category.engName" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
translate}}</button>
</div>
</div>
......
......@@ -189,7 +189,8 @@
data-hs-overlay="#modal-detail">
{{'Cancel' | translate}}
</button>
<button type="button" (click)="save()" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
<button type="button" (click)="save()" [class.ti-btn-disabled]="!country.countryId||!country.thName||!country.engName"
[disabled]="!country.countryId||!country.thName||!country.engName" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
translate}}</button>
</div>
</div>
......
......@@ -195,7 +195,8 @@
data-hs-overlay="#modal-detail">
{{'Cancel' | translate}}
</button>
<button type="button" (click)="save()" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
<button type="button" (click)="save()" [class.ti-btn-disabled]="!degree.degreeId||!degree.thName||!degree.engName"
[disabled]="!degree.degreeId||!degree.thName||!degree.engName" class="ti-btn bg-primary text-white !font-medium">{{'Save' |
translate}}</button>
</div>
</div>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment