-
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
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.
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.
@0oM4R Can you please tell me more info on what I need to do here to fix it? I am not sure I understand exactly what to comment. Thanks.
@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? |
Hi! As I understand we can go forward with this PR. Please check if everything is OK. |
@mik-tf Please make sure to update the issue status; also if the pr is not ready please make sure to move it to draft and update the issue status as well, |
@0oM4R ok good. but can you check the reply above? I asked you some guidance lately and didn't have any feedback yet. For now, I do not know how to fix the issue. So I would appreciate more information from the dev team, if possible. Thanks! My question is here: #3687 (comment) Thanks for all the help btw. |
Sure, the main point is we need the link to be a link for a markdown file; as i mentioned here: #3687 (comment) the current logic do not support extracting html content so the mentioned link will not work |
Closing this PR in favor of #3866. It should be cleaner. |
Description
Related Issues
Preliminary Checks:
Checklist