Skip to content
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

#6270 Adds datetime to default filename on clipboard uploads #6272

Conversation

gdelavald
Copy link
Contributor

@RocketChat/core

Closes #6270

Added some screenshots to the issue and waiting feedback.

@CLAassistant
Copy link

CLAassistant commented Mar 7, 2017

CLA assistant check
All committers have signed the CLA.

@engelgabriel engelgabriel added this to the 0.54.0 milestone Mar 7, 2017
@@ -165,7 +166,7 @@ Template.messageBox.events
e.preventDefault()
files.push
file: item.getAsFile()
name: 'Clipboard'
name: 'Clipboard - ' + moment().format('L, LTS')
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think its better use "Time Format" setting instead of hardcode the format here.
Use RocketChat.settings.get('Message_TimeFormat') to get the setting value.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hey @karlprieb, thanks for the feedback.
How do you feel about using the Message_TimeAndDateFormat for this? I think it would be better for searching through older files. I'll add a screenshot to the PR.

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I agree :) 👍

@gdelavald
Copy link
Contributor Author

Replaced the hardcoded format for the Message_TimeAndDateFormat setting.

screenshot

@engelgabriel engelgabriel merged commit a08f2a9 into RocketChat:develop Mar 8, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants