Unverified Commit f6d78b5b authored by Thomas Oropeza's avatar Thomas Oropeza Committed by Jeffrey I. Schiller

Gallery Moderation: Update Message Sent to User

Refers the user of an app that has been reported to the Terms and
conditions when deactivating it. Also now it is required to add a
description when reporting an app (Makes moderation easier).

Change-Id: I59ecfe1bf38c33cf4ab1dcf3c3f17b5ead750fe8
parent 15f56833
......@@ -279,9 +279,9 @@ public interface OdeMessages extends Messages {
String labelConfirm();
@DefaultMessage("Your app \"{0}\" has been removed from the gallery due to inappropriate content. "
+ "Please review the guidelines at ..."
+ "If you feel this action has been taken in error, or you would like to discuss the issue, "
+ "please use the App Inventor forum at: \n")
+ "Please review the guidelines at http://ai2.appinventor.mit.edu/about/termsofservice.html. "
+ "If you feel this action has been taken in error, " +
"you may reply directly to this e-mail for discussion. \n")
@Description("Label of the Text of Template 1 of reportlist")
String inappropriateAppContentRemoveEmail(String title);
......
......@@ -903,7 +903,12 @@ panel
reportText.addStyleName("action-textarea");
final Button submitReport = new Button(MESSAGES.galleryReportButton());
submitReport.addStyleName("action-button");
final Label descriptionError = new Label();
descriptionError.setText("Description required");
descriptionError.setStyleName("ode-ErrorMessage");
descriptionError.setVisible(false);
appReportPanel.add(reportPrompt);
appReportPanel.add(descriptionError);
appReportPanel.add(reportText);
appReportPanel.add(submitReport);
......@@ -931,8 +936,13 @@ panel
submitReport.setEnabled(false);
}
};
Ode.getInstance().getGalleryService().addAppReport(app, reportText.getText(),
if (!reportText.getText().trim().isEmpty()){
Ode.getInstance().getGalleryService().addAppReport(app, reportText.getText(),
reportClickCallback);
descriptionError.setVisible(false);
} else {
descriptionError.setVisible(true);
}
}
});
}
......@@ -1416,7 +1426,7 @@ panel
/**
* Loads the proper tab GUI with gallery's app data.
* @param apps: list of returned gallery apps from callback.
* @param appResults: list of returned gallery apps from callback.
* @param requestId: determines the specific type of app data.
*/
private void refreshApps(GalleryAppListResult appResults, int requestId, boolean refreshable) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment