@hestia-earth/ui-components 0.40.21 → 0.40.22
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -181,8 +181,12 @@ var Template;
|
|
|
181
181
|
})(Template || (Template = {}));
|
|
182
182
|
const reportIssueUrl = (repository, template, issueParams = {}) => [
|
|
183
183
|
`${gitHome}/${repository}/-/issues/new`,
|
|
184
|
-
|
|
185
|
-
|
|
184
|
+
[
|
|
185
|
+
template ? `issuable_template=${template}` : '',
|
|
186
|
+
...Object.entries(issueParams).map(([key, value]) => key && value ? `issue[${key}]=${encodeURIComponent(value)}` : null)
|
|
187
|
+
]
|
|
188
|
+
.filter(Boolean)
|
|
189
|
+
.join('&')
|
|
186
190
|
]
|
|
187
191
|
.filter(Boolean)
|
|
188
192
|
.join('?');
|
|
@@ -12098,7 +12102,7 @@ const nodeTypeToString = (type) => `${type.charAt(0).toLowerCase()}${type.substr
|
|
|
12098
12102
|
const acceptedTypes = Object.values(NodeType)
|
|
12099
12103
|
.filter(val => val !== NodeType.Term)
|
|
12100
12104
|
.map(nodeTypeToString);
|
|
12101
|
-
const issueLink = (fileStatus, error) => reportIssueUrl(Repository.frontend,
|
|
12105
|
+
const issueLink = (fileStatus, error) => reportIssueUrl(Repository.frontend, Template.bug, {
|
|
12102
12106
|
title: 'Issue uploading a file on the platform',
|
|
12103
12107
|
description: `
|
|
12104
12108
|
# 🐞 Bug Report
|