Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Made the update payment-category-component to be independent as subse… #54

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
"version": "0.0.0",
"scripts": {
"ng": "ng",
"start": "NODE_OPTIONS=--max_old_space_size=8192 ng serve",
"build": "NODE_OPTIONS=--max_old_space_size=8192 ng build",
"start": "set NODE_OPTIONS=--max_old_space_size=8192 && ng serve",
"build": "set NODE_OPTIONS=--max_old_space_size=8192 && ng build",
"build:prod": "ng build --aot --configuration production",
"test": "ng test",
"test:headless": "ng test --no-watch --no-progress --browsers=ChromeHeadlessCI",
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
<!-- Show patient details if available -->
<div>
<div *ngIf="patient">
<p><strong>Patient Name:</strong> {{ patient.name }}</p>
<p><strong>Patient ID:</strong> {{ patient.id }}</p>
</div>

<!-- Form to update payment category -->
<div>
<label for="payment-category">Select Payment Category:</label>
<select id="payment-category" [(ngModel)]="paymentCategory">
<option value="" disabled selected>Select a category</option>
<option value="cash">Cash</option>
<option value="insurance">Insurance</option>
<option value="credit">Credit</option>
</select>
</div>

<!-- Update button -->
<button (click)="updatePaymentCategory()">Update Payment Category</button>

</div>
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
@Component({
selector: "app-update-payment-category",
templateUrl: "./update-payment-category.component.html",
styleUrls: ["./update-payment-category.component.scss"],
})