console_conf/chooser: use model display name in top banner

Signed-off-by: Maciej Borzecki <maciej.zenon.borzecki@canonical.com>
This commit is contained in:
Maciej Borzecki 2020-04-07 17:36:47 +02:00
parent ed791e5c9e
commit d3ac0d6f36
2 changed files with 14 additions and 2 deletions

View File

@ -35,4 +35,9 @@ class WelcomeController(BaseController):
class RecoveryChooserWelcomeController(WelcomeController):
welcome_view = ChooserWelcomeView
def __init__(self, app):
super().__init__(app)
self.model = app.base_model

View File

@ -51,6 +51,13 @@ class WelcomeView(BaseView):
class ChooserWelcomeView(WelcomeView):
excerpt = (
"System recovery triggered. Proceed to select one of available "
"systems and execute a recovery action."
"System mode selection triggered. Proceed to select one of available "
"systems and actions."
)
def __init__(self, controller):
current = controller.model.current
if current is not None:
self.title = current.model.display_name
super().__init__(controller)