Skip to content

Commit

Permalink
Merge branch 'bug_24161/missing_write_check_on_delete_button_pr' into…
Browse files Browse the repository at this point in the history
… branches/rudder/8.0
  • Loading branch information
fanf committed Feb 7, 2024
2 parents 74b2646 + 0455daf commit f570793
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions datasources/src/main/elm/sources/View.elm
Original file line number Diff line number Diff line change
Expand Up @@ -91,10 +91,13 @@ view model =
, div [ class "modal-footer" ] [
button [ class "btn btn-default", onClick (UpdateUI {ui | deleteModal = Nothing}) ]
[ text "Cancel " ]
, button [ class "btn btn-danger", onClick (DeleteCall datasource)]
[ text "Delete "
, i [ class "fa fa-times-circle" ] []
, if model.hasWriteRights then
button [ class "btn btn-danger", onClick (DeleteCall datasource)] [
text "Delete "
, i [ class "fa fa-times-circle" ] []
]
else
text ""
]
]
]
Expand Down

0 comments on commit f570793

Please sign in to comment.