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:
parent
ed791e5c9e
commit
d3ac0d6f36
|
@ -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
|
||||
|
|
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue