From f1060fbf6b363ea6e2d2483a4fa1324f07dd2b26 Mon Sep 17 00:00:00 2001 From: Sunil Mohan Adapa Date: Thu, 9 Feb 2023 08:43:29 -0800 Subject: [PATCH] app: Add backup and restore menu items to toolbar menu Closes: #2316. Tests: - Go to to power app. There is no menu. - Go to firewall app. There is a menu item but no backup and restore items present. - Go to bepasty app. There are backup and restore menu items in menu. Clicking backup items takes us to create backup page with only Bepasty app selected. Signed-off-by: Sunil Mohan Adapa [jvalleroy: Fix CSS classes for new menu items] Signed-off-by: James Valleroy Reviewed-by: James Valleroy --- plinth/templates/toolbar.html | 14 +++++++++++++- plinth/views.py | 6 ++++++ 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/plinth/templates/toolbar.html b/plinth/templates/toolbar.html index e935f7c5a..ffd03b7a1 100644 --- a/plinth/templates/toolbar.html +++ b/plinth/templates/toolbar.html @@ -21,7 +21,7 @@ {% endif %} - {% if has_diagnostics or show_uninstall %} + {% if has_diagnostics or show_uninstall or has_backup_restore %}