Updated Announcement
This commit is contained in:
@@ -87,6 +87,8 @@ async function fetchDepartments() {
|
||||
return;
|
||||
}
|
||||
|
||||
console.log(filteredDepartments)
|
||||
|
||||
filteredDepartments.forEach(department => {
|
||||
const departmentDiv = document.createElement('div');
|
||||
departmentDiv.classList.add('department-card');
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
// Load announcement content from the application info when the page loads
|
||||
async function loadAnnouncement() {
|
||||
try {
|
||||
const announcementText = await window.electronAPI.readAnnouncement();
|
||||
const announcementText = await window.uiAPI.readAnnouncement();
|
||||
const announcementContent = document.getElementById('announcement-content');
|
||||
if (announcementContent && announcementText) {
|
||||
announcementContent.innerHTML = formatTextForHtml(announcementText);
|
||||
@@ -22,5 +22,5 @@ function formatTextForHtml(text) {
|
||||
|
||||
// Close the window when the close button is clicked
|
||||
function closeWindow() {
|
||||
window.electronAPI.closeAnnouncementWindow();
|
||||
window.uiAPI.closeAnnouncementWindow();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user