Skip to content

Commit

Permalink
Add copy button without practical function
Browse files Browse the repository at this point in the history
  • Loading branch information
Daisszzzz committed Oct 14, 2024
1 parent 6d4f9f4 commit 870f648
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,16 @@ <h1 id="enroll-header" class="text-break">Enroll Students for {{ courseId }}</h1
<tm-ajax-loading *ngIf="isEnrolling"></tm-ajax-loading>
Enroll students
</button>

<button
type="button"
title="Copy"
id="btn-copy"
name="button-copy"
class="btn btn-secondary float-end me-2"
(click)="copyToClipboard()">
Copy
</button>
</div>
</div>
<div class="row mt-3" style="align-items: center;">
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -656,4 +656,11 @@ export class InstructorCourseEnrollPageComponent implements OnInit {
scrollOffset: 70,
});
}

/**
* Implement the copy method
*/
copyToClipboard() {
alert("Copy the student information")
}
}

1 comment on commit 870f648

@Daisszzzz
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

comment test

Please sign in to comment.