User:Chaotic Enby/Unblock wizard.js: Difference between revisions

From Test Wiki
Content deleted Content added
this should do it
rm redundancy
Line 141: Line 141:
break;
break;
case "Promo":
case "Promo":
questionLabels = ['explain-promo', 'coi', 'future-promo', 'other'];
if(true) { // to replace by an api call to check if the block is username-related
questionLabels = ['explain-promo', 'coi', 'future-promo', 'username', 'other'];
} else {
questionLabels = ['explain-promo', 'coi', 'future-promo', 'other'];
}
break;
break;
case "Autoblock":
case "Autoblock":