From c634f964ebc19e98a0a521ad13e244e712c25b7f Mon Sep 17 00:00:00 2001 From: Frederick Yin Date: Wed, 6 Apr 2022 22:46:46 +0800 Subject: Add button to open announcement in browser --- contents/ui/main.qml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'contents/ui/main.qml') diff --git a/contents/ui/main.qml b/contents/ui/main.qml index 1d73bd4..7241373 100644 --- a/contents/ui/main.qml +++ b/contents/ui/main.qml @@ -51,7 +51,11 @@ Item { // Get activity stream for each course for (let activity of activityStream) { if (activity.type == "Announcement") { - announcementsModel.append({course: course[1], title: activity.title}) + announcementsModel.append({ + course: course[1], + title: activity.title, + url: activity.html_url + }) } } }) @@ -84,6 +88,7 @@ Item { ListElement { course: "CS101" title: "Title of the announcement" + url: "https://xkcd.com" } } -- cgit v1.2.3