Skip to content

Commit

Permalink
Merge pull request #583 from mwhudson/error-report-ui-tweaks
Browse files Browse the repository at this point in the history
small tweaks to error reporting ui
  • Loading branch information
mwhudson authored Dec 9, 2019
2 parents 6817313 + ed07cd9 commit d6178d9
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions subiquity/ui/views/error.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,8 @@ def close_btn(parent, label=None):
ErrorReportKind.INSTALL_FAIL: (_("""
Do you want to try starting the installation again?
"""), ['restart', 'close']),
ErrorReportKind.UI: (_("Select continue to try again."), ['continue']),
ErrorReportKind.UI: (
_("Select continue to try the installation again."), ['continue']),
ErrorReportKind.UNKNOWN: ("", ['close']),
}

Expand Down Expand Up @@ -171,9 +172,6 @@ def _progress():
def _pile_elements(self):
btns = self.btns.copy()

if self.report.uploader:
btns['continue'] = btns['close'] = btns['cancel']

widgets = [
Text(rewrap(_(error_report_intros[self.report.kind]))),
Text(""),
Expand Down Expand Up @@ -217,7 +215,9 @@ def _pile_elements(self):
Text(""),
self.spinner])

if self.interrupting:
if self.report.uploader:
widgets.extend([Text(""), btns['cancel']])
elif self.interrupting:
if self.report.state != ErrorReportState.INCOMPLETE:
text, btn_names = error_report_options[self.report.kind]
if text:
Expand Down

0 comments on commit d6178d9

Please sign in to comment.