initial commit
This commit is contained in:
16
client/pages/cancel.js
Normal file
16
client/pages/cancel.js
Normal file
@ -0,0 +1,16 @@
|
||||
async function showPage({ rootEl, peertubeHelpers }) {
|
||||
// Redirect to login page if not auth
|
||||
if (!peertubeHelpers.isLoggedIn()) return (window.location.href = "/login");
|
||||
|
||||
const settings = await peertubeHelpers.getSettings();
|
||||
const description = await peertubeHelpers.markdownRenderer.enhancedMarkdownToHTML(settings["sell-cancel-description"]);
|
||||
|
||||
rootEl.innerHTML = `
|
||||
<div class="orion-content text-center mt-5">
|
||||
<h1>${await peertubeHelpers.translate("Subscription canceled.")}</h1>
|
||||
<p>${description}</p>
|
||||
</div>
|
||||
`;
|
||||
}
|
||||
|
||||
export { showPage };
|
Reference in New Issue
Block a user