-
Notifications
You must be signed in to change notification settings - Fork 1
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
File to new embed type #1779
base: master
Are you sure you want to change the base?
File to new embed type #1779
Conversation
Passing run #11371 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
Passing run #11370 ↗︎
Details:
This comment has been generated by cypress-bot as a result of this project's GitHub integration settings. |
const formatFile = (file: File, t: TFunction): File => ({ | ||
...file, | ||
formats: [ | ||
{ url: file.url, fileType: file.type, tooltip: `${t(`form.file.download`)} ${file.title}` }, |
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.
Du mister gjerne tooltipen som er satt her.
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.
Uff, det er sant. Jeg tok bare hensyn til nye FileList. Skal tenke litt på en god løsning.
Fikser også en bug som ble innført i nye arrMove. Den oppstod hvis man flyttet arr[1] til arr[0].
Avhengig av NDLANO/frontend-packages#1608