-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature/#144 add download button #145
base: master
Are you sure you want to change the base?
Feature/#144 add download button #145
Conversation
element.href = URL.createObjectURL(file); | ||
element.download = `Codepaster_Session_${dateNow}.txt`; | ||
element.click(); | ||
}; |
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.
This is not using prettier formatting, @manudous will guide you setting up this
front/src/common/log-download.ts
Outdated
@@ -0,0 +1,10 @@ | |||
export const handleDownSessionContent = (sessionContent: string) => { |
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.
rather
handleDownloadSessionContent
|
||
max-width:50%; | ||
|
||
} |
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.
Could this be simplified since we are using material ui?
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.
added spacing method instead of "50%"
@@ -118,3 +118,45 @@ export const undoIcon = css` | |||
display: initial; | |||
} | |||
`; | |||
|
|||
export const downButton = css` |
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.
This is twice?
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.
renamed to downloadButton and downloadIcon
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.
Reviewed
added download button functionality.
added date when it generates the txt file.
edited css file.