mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-24 16:30:27 +08:00
Allow anonymous users to report dataset errors
This commit is contained in:
@@ -113,10 +113,7 @@ var View = Backbone.View.extend({
|
||||
</a>
|
||||
</b>
|
||||
</p>`);
|
||||
const Galaxy = getGalaxyInstance();
|
||||
if (Galaxy.user.id) {
|
||||
this.$el.append("<h3>Issue Report</h3>").append(this._getBugFormTemplate(dataset, job));
|
||||
}
|
||||
this.$el.append("<h3>Issue Report</h3>").append(this._getBugFormTemplate(dataset, job));
|
||||
},
|
||||
|
||||
job_summary: function(job) {
|
||||
@@ -170,13 +167,15 @@ var View = Backbone.View.extend({
|
||||
/** Convert tab template */
|
||||
_getBugFormTemplate: function(dataset, job) {
|
||||
const Galaxy = getGalaxyInstance();
|
||||
const userEmail = Galaxy.user.get("email");
|
||||
const form = new Form({
|
||||
inputs: [
|
||||
{
|
||||
type: "text",
|
||||
hidden: true,
|
||||
hidden: !!userEmail,
|
||||
name: "email",
|
||||
value: Galaxy.user.get("email")
|
||||
value: userEmail,
|
||||
label: "Please provide your email:"
|
||||
},
|
||||
{
|
||||
type: "text",
|
||||
|
||||
Reference in New Issue
Block a user