From ff2f4f6f714f3b84ebd5e6d188b1e1824b15f690 Mon Sep 17 00:00:00 2001 From: Katerina Koukiou Date: Fri, 13 Dec 2024 14:37:01 +0100 Subject: [PATCH] data: profile: extend workstation profile to hide pages for Web UI This was previously handled within the Web UI codebase. Now we hide pages specified by the `hidden_pages` configuration option. --- data/anaconda.conf | 6 +++++- data/profile.d/fedora-workstation.conf | 3 +++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/data/anaconda.conf b/data/anaconda.conf index 609d2b70a0a..879b3cb6791 100644 --- a/data/anaconda.conf +++ b/data/anaconda.conf @@ -284,10 +284,14 @@ reformat_blocklist = /home /usr/local /opt /var/www # The path to a custom stylesheet. custom_stylesheet = -# A list of spokes to hide in UI. +# A list of spokes to hide in GTK UI. # FIXME: Use other identification then names of the spokes. hidden_spokes = +# A list of spokes to hide in Web UI. +# Use the ID attribute of the Page class. +hidden_webui_pages = + # Should the UI allow to change the configured root account? can_change_root = False diff --git a/data/profile.d/fedora-workstation.conf b/data/profile.d/fedora-workstation.conf index edbec81eea7..c6fd47ebad0 100644 --- a/data/profile.d/fedora-workstation.conf +++ b/data/profile.d/fedora-workstation.conf @@ -22,6 +22,9 @@ hidden_spokes = NetworkSpoke PasswordSpoke UserSpoke +hidden_webui_pages = + accounts + language [Localization] # disable localization for the Fedora Workstation live image to avoid