feat(learn): add backend solution url to help post (#40950)
Co-authored-by: Randell Dawson <5313213+RandellDawson@users.noreply.github.com>
This commit is contained in:
		| @@ -4,7 +4,8 @@ import { | |||||||
|   types, |   types, | ||||||
|   closeModal, |   closeModal, | ||||||
|   challengeFilesSelector, |   challengeFilesSelector, | ||||||
|   challengeMetaSelector |   challengeMetaSelector, | ||||||
|  |   projectFormValuesSelector | ||||||
| } from '../redux'; | } from '../redux'; | ||||||
| import { tap, mapTo } from 'rxjs/operators'; | import { tap, mapTo } from 'rxjs/operators'; | ||||||
| import { forumLocation } from '../../../../../config/env.json'; | import { forumLocation } from '../../../../../config/env.json'; | ||||||
| @@ -35,7 +36,9 @@ function createQuestionEpic(action$, state$, { window }) { | |||||||
|         navigator: { userAgent }, |         navigator: { userAgent }, | ||||||
|         location: { href } |         location: { href } | ||||||
|       } = window; |       } = window; | ||||||
|  |       const projectFormValues = Object.entries( | ||||||
|  |         projectFormValuesSelector(state) | ||||||
|  |       ); | ||||||
|       const endingText = dedent( |       const endingText = dedent( | ||||||
|         `**Your browser information:** |         `**Your browser information:** | ||||||
|  |  | ||||||
| @@ -48,8 +51,18 @@ function createQuestionEpic(action$, state$, { window }) { | |||||||
|       ); |       ); | ||||||
|  |  | ||||||
|       let textMessage = dedent( |       let textMessage = dedent( | ||||||
|         `**Tell us what's happening:**\n\n\n\n**Your code so far** |         `**Tell us what's happening:** | ||||||
|         ${filesToMarkdown(files)}\n${endingText}` |         \n\n | ||||||
|  |         ${ | ||||||
|  |           projectFormValues.length | ||||||
|  |             ? `**Your project link(s)**\n` | ||||||
|  |             : `**Your code so far**` | ||||||
|  |         } | ||||||
|  |         ${projectFormValues | ||||||
|  |           ?.map(([key, val]) => `${key}: ${val}\n`) | ||||||
|  |           ?.join('') || filesToMarkdown(files)} | ||||||
|  |         \n | ||||||
|  |         ${endingText}` | ||||||
|       ); |       ); | ||||||
|  |  | ||||||
|       const altTextMessage = dedent( |       const altTextMessage = dedent( | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user