diff --git a/apps/terminal/models.py b/apps/terminal/models.py index 04bc74c6703a659309210f68403104d1e275fa43..311e4d07b23e7e2e6c320025f929231ea3f35014 100644 --- a/apps/terminal/models.py +++ b/apps/terminal/models.py @@ -90,6 +90,14 @@ class Terminal(models.Model): config = self.get_replay_storage_config() return {"TERMINAL_REPLAY_STORAGE": config} + @staticmethod + def get_login_title_setting(): + login_title = None + if settings.XPACK_ENABLED: + from xpack.plugins.interface.models import Interface + login_title = Interface.get_login_title() + return {'TERMINAL_HEADER_TITLE': login_title} + @property def config(self): configs = {} @@ -99,6 +107,7 @@ class Terminal(models.Model): configs[k] = getattr(settings, k) configs.update(self.get_command_storage_setting()) configs.update(self.get_replay_storage_setting()) + configs.update(self.get_login_title_setting()) configs.update({ 'SECURITY_MAX_IDLE_TIME': settings.SECURITY_MAX_IDLE_TIME })