From fa9038025e2cd312c12792019d51c15aa282ec4c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Vin=C3=ADcius=20Moreira?= Date: Fri, 13 Dec 2019 19:31:50 -0300 Subject: [PATCH] [wgem] begin suggestions --- bauh/gems/web/controller.py | 6 +++--- bauh/gems/web/resources/suggestions.yml | 14 +++++++++++++- 2 files changed, 16 insertions(+), 4 deletions(-) diff --git a/bauh/gems/web/controller.py b/bauh/gems/web/controller.py index 9ed15dae..ed80f5bb 100644 --- a/bauh/gems/web/controller.py +++ b/bauh/gems/web/controller.py @@ -235,9 +235,9 @@ class WebApplicationManager(SoftwareManager): inp_cat = SingleSelectComponent(label=self.i18n['category'], type_=SelectViewType.COMBO, options=cat_ops, default_option=cat_ops[0]) - tray_op_off = InputOption(label=self.i18n['web.install.option.tray.off.label'], value=0, tooltip=self.i18n['web.install.option.tray.off.tip']) - tray_op_default = InputOption(label=self.i18n['web.install.option.tray.default.label'], value='--tray', tooltip=self.i18n['web.install.option.tray.default.tip']) - tray_op_min = InputOption(label=self.i18n['web.install.option.tray.min.label'], value='--tray=start-in-tray', tooltip=self.i18n['web.install.option.tray.min.tip']) + tray_op_off = InputOption(id_='tray_off', label=self.i18n['web.install.option.tray.off.label'], value=0, tooltip=self.i18n['web.install.option.tray.off.tip']) + tray_op_default = InputOption(id_='tray_def', label=self.i18n['web.install.option.tray.default.label'], value='--tray', tooltip=self.i18n['web.install.option.tray.default.tip']) + tray_op_min = InputOption(id_='tray_min', label=self.i18n['web.install.option.tray.min.label'], value='--tray=start-in-tray', tooltip=self.i18n['web.install.option.tray.min.tip']) inp_tray = SingleSelectComponent(type_=SelectViewType.COMBO, options=[tray_op_off, tray_op_default, tray_op_min], diff --git a/bauh/gems/web/resources/suggestions.yml b/bauh/gems/web/resources/suggestions.yml index f56fd71f..7ff720eb 100644 --- a/bauh/gems/web/resources/suggestions.yml +++ b/bauh/gems/web/resources/suggestions.yml @@ -14,4 +14,16 @@ twitch: whatsapp: url: https://web.whatsapp.com - icon_url: \ No newline at end of file + options: + - tray_min + +telegram: + url: https://web.whatsapp.com + options: + - tray_min + +slack: + name: Slack + url: https://slack.com + options: + - tray_min \ No newline at end of file