Skip to content

Make notifier's filters not editable if 'show_edit' is false#616

Merged
vincent-olivert-riera merged 1 commit intoline:masterfrom
hoangpn:feature/make_notifier_filter_not_editable
Jun 20, 2025
Merged

Make notifier's filters not editable if 'show_edit' is false#616
vincent-olivert-riera merged 1 commit intoline:masterfrom
hoangpn:feature/make_notifier_filter_not_editable

Conversation

@hoangpn
Copy link
Contributor

@hoangpn hoangpn commented Jun 18, 2025

Currently, when displaying the notifier list, the Actions column will not be shown if show_edit is false. However, the filter column is still displayed along with the Add and Remove buttons when show_edit is false. For instance, when we display the Service notifiers from the Project detail page, the Action column is hidden by using the show_edit variable. However, even if the Actions column is hidden because the users are not supposed to edit those notifiers, they are still able to add filters to it, which is an edit action on the notifier.
We have changed it to only display the filters as labels and not show any actionable buttons so that the users are not supposed to add, edit or remove filters of a notifier if the value of 'show_edit' is false.

AS-IS:
image

TO-BE:
image

@hoangpn hoangpn force-pushed the feature/make_notifier_filter_not_editable branch from 57a0f1c to 7b5f178 Compare June 18, 2025 09:59
Currently, when displaying the notifier list, the Actions column will not be shown if
show_edit is false. However, the filter column is still displayed along with the Add
and Remove buttons when show_edit is false. For instance, when we display the Service
notifiers from the Project detail page, the Action column is hidden by using the show_edit
variable. However, even if the Actions column is hidden because the users are not supposed
to edit those notifiers, they are still able to add filters to it, which is an edit action
on the notifier.
We have changed it to only display the filters as labels and not show any actionable
buttons so that the users are not supposed to add, edit or remove filters of a notifier
if the value of 'show_edit' is false.
@hoangpn hoangpn force-pushed the feature/make_notifier_filter_not_editable branch from 7b5f178 to 02eeebe Compare June 20, 2025 03:46
@vincent-olivert-riera vincent-olivert-riera merged commit fe3f2b5 into line:master Jun 20, 2025
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants