diff --git a/client/common-client-plugin.js b/client/common-client-plugin.js index e4c22a3..3f3d158 100644 --- a/client/common-client-plugin.js +++ b/client/common-client-plugin.js @@ -17,7 +17,7 @@ async function register({ if (params.path.startsWith("/my-account")) { if (document.getElementById("subscription-link")) return; - let href = "/p/my-subscription"; + let href = "/p/ncd-my-subscription"; // Get menu container const menuContainer = document.getElementsByClassName("sub-menu")[0]; @@ -25,7 +25,7 @@ async function register({ // Create link const content = ` - ${await peertubeHelpers.translate("Storage")} + ${await peertubeHelpers.translate("NCD Storage")} `; @@ -41,21 +41,21 @@ async function register({ // Register routes registerClientRoute({ - route: "my-subscription", + route: "ncd-my-subscription", onMount: ({ rootEl }) => { subPage.showPage({rootEl, peertubeHelpers}); }, }); registerClientRoute({ - route: "subscription-success", + route: "ncd-subscription-success", onMount: ({ rootEl }) => { successPage.showPage({rootEl, peertubeHelpers}); }, }); registerClientRoute({ - route: "subscription-cancel", + route: "ncd-subscription-cancel", onMount: ({ rootEl }) => { cancelPage.showPage({rootEl, peertubeHelpers}); }, diff --git a/languages/fr.json b/languages/fr.json index 0403f16..6ab5ed5 100644 --- a/languages/fr.json +++ b/languages/fr.json @@ -10,5 +10,5 @@ "Subscription canceled.": "Souscription annulée.", "Secure payment with Stripe": "Paiement sécurisé via Stripe", "Your current plan": "Votre offre actuelle", - "Storage": "Stockage" + "NCD Storage": "NCD Stockage" } diff --git a/main.js b/main.js index eea623f..8771dee 100644 --- a/main.js +++ b/main.js @@ -121,8 +121,8 @@ async function register({ } }, mode: 'subscription', - success_url: `${INSTANCE_URL}/p/subscription-success?session_id={CHECKOUT_SESSION_ID}`, - cancel_url: `${INSTANCE_URL}/p/subscription-cancel`, + success_url: `${INSTANCE_URL}/p/ncd-subscription-success?session_id={CHECKOUT_SESSION_ID}`, + cancel_url: `${INSTANCE_URL}/p/ncd-subscription-cancel`, }); res.json({ @@ -157,7 +157,7 @@ async function register({ // This is the url to which the customer will be redirected when they are done // managing their billing with the portal. - const returnUrl = INSTANCE_URL + "/p/my-subscription"; + const returnUrl = INSTANCE_URL + "/p/ncd-my-subscription"; const portalSession = await stripe.billingPortal.sessions.create({ customer: checkoutSession.customer, diff --git a/package.json b/package.json index 971d803..08ec20c 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "peertube-plugin-ncd-sell-storage", "description": "NCD fork of the peertube-plugin-orion-sell-storage to sell storage to users using Stripe", - "version": "1.0.6", + "version": "1.0.8", "author": "matty", "clientScripts": [ {