diff --git a/webextension/js/popup.js b/webextension/js/popup.js
index 7ed2b50..71a123f 100644
--- a/webextension/js/popup.js
+++ b/webextension/js/popup.js
@@ -12,6 +12,7 @@ const DEFAULT_ICON = "circle";
const P_ONBOARDING_1 = "onboarding1";
const P_ONBOARDING_2 = "onboarding2";
const P_ONBOARDING_3 = "onboarding3";
+const P_ONBOARDING_4 = "onboarding4";
const P_CONTAINERS_LIST = "containersList";
const P_CONTAINERS_EDIT = "containersEdit";
const P_CONTAINER_INFO = "containerInfo";
@@ -69,8 +70,10 @@ const Logic = {
// Routing to the correct panel.
.then(() => {
// If localStorage is disabled, we don't show the onboarding.
- if (!localStorage || localStorage.getItem("onboarded3")) {
+ if (!localStorage || localStorage.getItem("onboarded4")) {
this.showPanel(P_CONTAINERS_LIST);
+ } else if (localStorage.getItem("onboarded3")) {
+ this.showPanel(P_ONBOARDING_4);
} else if (localStorage.getItem("onboarded2")) {
this.showPanel(P_ONBOARDING_3);
} else if (localStorage.getItem("onboarded1")) {
@@ -215,8 +218,29 @@ Logic.registerPanel(P_ONBOARDING_3, {
// This method is called when the object is registered.
initialize() {
// Let's move to the containers list panel.
- document.querySelector("#onboarding-done-button").addEventListener("click", () => {
+ document.querySelector("#onboarding-almost-done-button").addEventListener("click", () => {
localStorage.setItem("onboarded3", true);
+ Logic.showPanel(P_ONBOARDING_4);
+ });
+ },
+
+ // This method is called when the panel is shown.
+ prepare() {
+ return Promise.resolve(null);
+ },
+});
+
+// P_ONBOARDING_4: Fourth page for Onboarding.
+// ----------------------------------------------------------------------------
+
+Logic.registerPanel(P_ONBOARDING_4, {
+ panelSelector: ".onboarding-panel-4",
+
+ // This method is called when the object is registered.
+ initialize() {
+ // Let's move to the containers list panel.
+ document.querySelector("#onboarding-done-button").addEventListener("click", () => {
+ localStorage.setItem("onboarded4", true);
Logic.showPanel(P_CONTAINERS_LIST);
});
},
diff --git a/webextension/popup.html b/webextension/popup.html
index fafc66d..5264b11 100644
--- a/webextension/popup.html
+++ b/webextension/popup.html
@@ -27,6 +27,13 @@
Start with the containers we've created, or create your own.
+ Next + + +