From 1c67f456bc1117c68fc7a76fc7bedde78a8f530c Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Thu, 7 Apr 2022 18:27:19 +0800 Subject: Remove delete button --- contents/ui/main.qml | 8 -------- 1 file changed, 8 deletions(-) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 1c7d25f..f4eed97 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -52,8 +52,6 @@ Item { for (let course of courses) { callApi(`/courses/${course[0]}/activity_stream`, 10, activityStream => { // Get activity stream for each course - let announcementCount = 0 - let assignmentCount = 0 activityStream.forEach(activity => { let important = plasmoid.configuration.importantActivities.includes( activity.id.toString() @@ -63,25 +61,21 @@ Item { announcementsModel.append({ type: "announcement", activityId: activity.id, - index: announcementCount, course: course[1], title: activity.title, url: activity.html_url, important, }) - announcementCount++ } else if (activity.type == "Submission") { assignmentsModel.append({ type: "assignment", activityId: activity.id, - index: assignmentCount, course: course[1], title: activity.title, due: activity.assignment.due_at, url: activity.html_url, important, }) - assignmentCount++ } }) }) @@ -113,7 +107,6 @@ Item { id: announcementsModel ListElement { type: "announcement" - index: 0 course: "CS101" title: "Title" url: "https://xkcd.com" @@ -145,7 +138,6 @@ Item { id: assignmentsModel ListElement { type: "assignment" - index: 0 course: "EE210" title: "Title" due: "2022-12-31T23:59:59Z" -- cgit v1.2.3