fix(merge_component): 🚧 try fix delayed commit show

Try solving delayed commit show, WIP topping and string param display for commit modal
This commit is contained in:
pakintada@gmail.com 2024-03-02 11:15:48 +07:00
parent ce7d595427
commit 517e051f2d
9 changed files with 232 additions and 107 deletions

View file

@ -41,7 +41,7 @@
</div>
<!-- File Change Status -->
<button onclick="patch_merge_modal.showModal()" *ngIf="isCommitLoaded">
<button onclick="patch_merge_modal.showModal()" *ngIf="isCommitLoaded | async">
<h1 class="text-center font-extrabold text-2xl text-red-500 animate-pulse">Detect Changes! Click</h1>

View file

@ -100,6 +100,7 @@ export class LayoutComponent implements OnInit, OnDestroy {
this.isCommitLoaded = Promise.resolve(true);
}
// TODO: optimize
if(data != undefined && typeof data === 'object'){
// check if attr exists
if(data.files != null && data.files != undefined){