-
Notifications
You must be signed in to change notification settings - Fork 8
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
change url for terms and conditions from threefold library to manual #3687
base: development
Are you sure you want to change the base?
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we should have this update in dashboard as well,
tfgrid-sdk-ts/packages/playground/src/weblets/profile_manager.vue
Lines 859 to 876 in 4e2fc0b
function parseAcceptTermsLink(tempDiv: HTMLDivElement) { | |
const url = "https://library.threefold.me/info/legal#"; | |
const linkElements = tempDiv.querySelectorAll("a"); | |
linkElements.forEach(linkElement => { | |
const currentDomainMatch = linkElement.href.match(/^(https?:\/\/[^\\/]+)/); | |
if ( | |
(currentDomainMatch && linkElement.href.includes("localhost")) || | |
(currentDomainMatch && linkElement.href.includes("dashboard")) // To update only internal links | |
) { | |
const currentDomain = currentDomainMatch[1]; | |
linkElement.href = linkElement.href.replace(currentDomain, url); | |
} | |
}); | |
} | |
watch(openAcceptTerms, async () => { | |
if (openAcceptTerms.value) { | |
try { | |
const url = "https://library.threefold.me/info/legal/"; |
@0oM4R I updated the two URLs from library to manual. LMK if it's OK. And feel free to test it on your end. Thanks. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The terms and condition page can't be retrieved and when I press accept terms and conditions it fails
dashboard (2).log
@@ -873,7 +873,7 @@ function parseAcceptTermsLink(tempDiv: HTMLDivElement) { | |||
watch(openAcceptTerms, async () => { | |||
if (openAcceptTerms.value) { | |||
try { | |||
const url = "https://library.threefold.me/info/legal/"; | |||
const url = "https://manual.grid.tf/knowledge_base/legal/terms_conditions_all3.html"; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it wont work; i think we should have markdown file to be able to parse it
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@mik-tf Can we mark this PR as a draft until the comments get resolved? |
@0oM4R Of course. Done. |
@0oM4R as I understand, the issue on cors has been resolved. I'll wait for your input before setting it to |
|
The related issue's state is accepted, shouldn't this pr be drafted? |
Description
Related Issues
Preliminary Checks:
Checklist