Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Work around (not bug fix) for issue #684. #686

Merged
merged 2 commits into from
Jan 9, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions securedrop_client/gui/widgets.py
Original file line number Diff line number Diff line change
Expand Up @@ -2667,16 +2667,19 @@ def focusOutEvent(self, e):
super(ReplyTextEdit, self).focusOutEvent(e)

def set_logged_in(self):
source_name = "<strong><font color=\"#24276d\">%s</font></strong>" % \
self.source.journalist_designation
self.setEnabled(True)
source_name = "<strong><font color=\"#24276d\">{}</font></strong>".format(
self.source.journalist_designation
)
placeholder = _("Compose a reply to ") + source_name
self.placeholder.setText(placeholder)
self.setEnabled(True)
self.placeholder.adjustSize()

def set_logged_out(self):
text = "<strong><font color=\"#2a319d\">" + _("Sign in") + " </font></strong>" + \
_("to compose or send a reply")
self.placeholder.setText(text)
self.placeholder.adjustSize()
self.setEnabled(False)

def setText(self, text):
Expand Down