Revert "Add a User Preference to Receive only Plaintext Emails"
This reverts commit 39777363a6
.
Reason for revert: the frontend part of this change doesn't work.
Change-Id: I53138e939a1b98578787457e48743fdc8abf658c
This commit is contained in:

committed by
David Pursehouse

parent
ab879094c0
commit
0aeceaa5be
@@ -287,12 +287,6 @@ public interface AccountConstants extends Constants {
|
||||
|
||||
String emailFieldLabel();
|
||||
|
||||
String emailFormatFieldLabel();
|
||||
|
||||
String messagePlaintextOnly();
|
||||
|
||||
String messageHtmlPlaintext();
|
||||
|
||||
String defaultBaseForMerges();
|
||||
|
||||
String autoMerge();
|
||||
|
@@ -19,10 +19,6 @@ messageCCMeOnMyComments = Every Comment
|
||||
messageEnabled = Only Comments Left By Others
|
||||
messageDisabled = None
|
||||
|
||||
emailFormatFieldLabel = Email Format:
|
||||
messagePlaintextOnly = Plaintext Only
|
||||
messageHtmlPlaintext = HTML and Plaintext
|
||||
|
||||
defaultBaseForMerges = Default Base For Merges:
|
||||
autoMerge = Auto Merge
|
||||
firstParent = First Parent
|
||||
|
@@ -61,7 +61,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
private ListBox reviewCategoryStrategy;
|
||||
private ListBox diffView;
|
||||
private ListBox emailStrategy;
|
||||
private ListBox emailFormat;
|
||||
private ListBox defaultBaseForMerges;
|
||||
private StringListPanel myMenus;
|
||||
private Button save;
|
||||
@@ -103,12 +102,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
emailStrategy.addItem(
|
||||
Util.C.messageDisabled(), GeneralPreferencesInfo.EmailStrategy.DISABLED.name());
|
||||
|
||||
emailFormat = new ListBox();
|
||||
emailFormat.addItem(
|
||||
Util.C.messagePlaintextOnly(), GeneralPreferencesInfo.EmailFormat.PLAINTEXT.name());
|
||||
emailFormat.addItem(
|
||||
Util.C.messageHtmlPlaintext(), GeneralPreferencesInfo.EmailFormat.HTML_PLAINTEXT.name());
|
||||
|
||||
defaultBaseForMerges = new ListBox();
|
||||
defaultBaseForMerges.addItem(
|
||||
Util.C.autoMerge(), GeneralPreferencesInfo.DefaultBase.AUTO_MERGE.name());
|
||||
@@ -164,7 +157,7 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
signedOffBy = new CheckBox(Util.C.signedOffBy());
|
||||
|
||||
boolean flashClippy = !UserAgent.hasJavaScriptClipboard() && UserAgent.Flash.isInstalled();
|
||||
final Grid formGrid = new Grid(14 + (flashClippy ? 1 : 0), 2);
|
||||
final Grid formGrid = new Grid(13 + (flashClippy ? 1 : 0), 2);
|
||||
|
||||
int row = 0;
|
||||
|
||||
@@ -184,10 +177,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
formGrid.setWidget(row, fieldIdx, emailStrategy);
|
||||
row++;
|
||||
|
||||
formGrid.setText(row, labelIdx, Util.C.emailFormatFieldLabel());
|
||||
formGrid.setWidget(row, fieldIdx, emailFormat);
|
||||
row++;
|
||||
|
||||
formGrid.setText(row, labelIdx, Util.C.defaultBaseForMerges());
|
||||
formGrid.setWidget(row, fieldIdx, defaultBaseForMerges);
|
||||
row++;
|
||||
@@ -261,7 +250,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
e.listenTo(diffView);
|
||||
e.listenTo(reviewCategoryStrategy);
|
||||
e.listenTo(emailStrategy);
|
||||
e.listenTo(emailFormat);
|
||||
e.listenTo(defaultBaseForMerges);
|
||||
}
|
||||
|
||||
@@ -299,7 +287,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
reviewCategoryStrategy.setEnabled(on);
|
||||
diffView.setEnabled(on);
|
||||
emailStrategy.setEnabled(on);
|
||||
emailFormat.setEnabled(on);
|
||||
defaultBaseForMerges.setEnabled(on);
|
||||
}
|
||||
|
||||
@@ -327,7 +314,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
p.reviewCategoryStrategy());
|
||||
setListBox(diffView, GeneralPreferencesInfo.DiffView.SIDE_BY_SIDE, p.diffView());
|
||||
setListBox(emailStrategy, GeneralPreferencesInfo.EmailStrategy.ENABLED, p.emailStrategy());
|
||||
setListBox(emailFormat, GeneralPreferencesInfo.EmailFormat.HTML_PLAINTEXT, p.emailFormat());
|
||||
setListBox(
|
||||
defaultBaseForMerges,
|
||||
GeneralPreferencesInfo.DefaultBase.FIRST_PARENT,
|
||||
@@ -428,12 +414,6 @@ public class MyPreferencesScreen extends SettingsScreen {
|
||||
GeneralPreferencesInfo.EmailStrategy.ENABLED,
|
||||
GeneralPreferencesInfo.EmailStrategy.values()));
|
||||
|
||||
p.emailFormat(
|
||||
getListBox(
|
||||
emailFormat,
|
||||
GeneralPreferencesInfo.EmailFormat.HTML_PLAINTEXT,
|
||||
GeneralPreferencesInfo.EmailFormat.values()));
|
||||
|
||||
p.defaultBaseForMerges(
|
||||
getListBox(
|
||||
defaultBaseForMerges,
|
||||
|
Reference in New Issue
Block a user