Skip to content
This repository was archived by the owner on Aug 1, 2022. It is now read-only.

Commit ee0637b

Browse files
committed
Show deprecation notification
Signed-off-by: Rūdolfs Ošiņš <[email protected]>
1 parent 09bde98 commit ee0637b

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

ui/App.svelte

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -127,6 +127,24 @@
127127
}
128128
}
129129
130+
async function showDeprecationNotification(): Promise<void> {
131+
notification.show({
132+
type: "error",
133+
message: "Upstream is being sunsetted",
134+
persist: true,
135+
actions: [
136+
{
137+
label: "Read more",
138+
handler: () => {
139+
ipc.openUrl(
140+
"https://radicle.community/t/upstream-july-2022-community-update"
141+
);
142+
},
143+
},
144+
],
145+
});
146+
}
147+
130148
sessionStore.subscribe(session => {
131149
// We’re not using a reactive statement here to prevent this code from
132150
// running when `activeRouteStore` is updated.
@@ -136,6 +154,7 @@
136154
break;
137155
138156
case remote.Status.Success:
157+
showDeprecationNotification();
139158
if (session.data.status === Session.Status.NoSession) {
140159
hotkeys.disable();
141160
router.replace({ type: "onboarding" });

0 commit comments

Comments
 (0)