Skip to content

Commit

Permalink
VPN-5833, VPN-5834 - Create 2.19 What's new and Update messages (#8620)
Browse files Browse the repository at this point in the history
* Create 2.19 What's new and Update messages

* Fix id in enable.js
  • Loading branch information
brizental authored Nov 22, 2023
1 parent 4beca24 commit b95b2d5
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 8 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
// Macos v2.16.0 requires a web-based update.
if (api.env.platform === 'macos' && api.env.versionString === '2.16.0') {
api.addon.setTitle(
'message.message_update_v2.18.block.extra_1',
'message.message_update_v2.19.block.extra_1',
'Download the new Mozilla VPN');
api.addon.composer.remove('c_3');
return;
Expand Down Expand Up @@ -51,6 +51,6 @@
api.addon.composer.remove('c_3');

api.addon.setTitle(
'message.message_update_v2.18.block.extra_1',
'message.message_update_v2.19.block.extra_1',
'Download the new Mozilla VPN');
})
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"api_version": "0.1",
"id": "message_update_v2.18",
"name": "Update to Mozilla VPN 2.18",
"id": "message_update_v2.19",
"name": "Update to Mozilla VPN 2.19",
"type": "message",
"conditions": {
"max_client_version": "2.17.9"
"max_client_version": "2.18.9"
},
"javascript": {
"enable": "enable.js"
},
"message": {
"date": 1671066000,
"id": "message_update_v2.18",
"title": "Update to Mozilla VPN 2.18",
"id": "message_update_v2.19",
"title": "Update to Mozilla VPN 2.19",
"subtitle": "We’ve released an updated version of Mozilla VPN! Update to the latest version for the best possible Mozilla VPN experience.",
"badge": "new_update",
"blocks": [
Expand Down Expand Up @@ -45,7 +45,7 @@
{
"id": "extra_1",
"type": "text",
"content": "Download the new Mozilla VPN 2.18"
"content": "Download the new Mozilla VPN 2.19"
}
]
}
Expand Down
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions addons/message_whats_new_v2.19/manifest.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
{
"api_version": "0.1",
"id": "message_whats_new_v2.19",
"name": "What's new message",
"type": "message",
"conditions": {
"min_client_version": "2.19.0",
"max_client_version": "2.19.9"
},
"javascript": {
"enable": "setDate.js"
},
"message": {
"date": 1675040400,
"id": "message_whats_new_v2.19",
"title": "You’ve updated to Mozilla VPN 2.19",
"subtitle": "You’re using the latest version of Mozilla VPN.",
"badge": "whats_new",
"blocks": [
{
"id": "c_1-1",
"type": "text",
"content": "This update includes minor bug fixes, UI adjustments and other performance improvements."
},
{
"id": "c_3",
"type": "text",
"content": "Thank you for installing the latest version!"
}
]
}
}
3 changes: 3 additions & 0 deletions addons/message_whats_new_v2.19/setDate.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
(function (api) {
api.addon.date = (api.settings.updateTime.getTime() / 1000);
})

0 comments on commit b95b2d5

Please sign in to comment.