Skip to content

Commit 633cce5

Browse files
committed
show online notification
1 parent 55141df commit 633cce5

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

src/Umbraco.Web.UI.Client/src/apps/app/network-connection-status.manager.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ export class UmbNetworkConnectionStatusManager extends UmbControllerBase {
2626

2727
#onOnline() {
2828
this.#offlineNotification?.close();
29+
this.#notificationContext?.peek('positive', {
30+
data: {
31+
headline: this.#localize.term('speechBubbles_onlineHeadline'),
32+
message: this.#localize.term('speechBubbles_onlineMessage'),
33+
},
34+
});
2935
}
3036

3137
#onOffline() {

src/Umbraco.Web.UI.Client/src/assets/lang/en.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1493,6 +1493,8 @@ export default {
14931493
preventCleanupDisableError: 'An error occurred while disabling version cleanup for %0%',
14941494
offlineHeadline: 'Offline',
14951495
offlineMessage: 'You are currently offline. Please check your internet connection.',
1496+
onlineHeadline: 'Online',
1497+
onlineMessage: 'You are now online. You can continue working.',
14961498
},
14971499
stylesheet: {
14981500
addRule: 'Add style',

0 commit comments

Comments
 (0)