# git_ui: Show disabled states in context menu \(\#28288\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/b67d3fd21b2e18c18b76dd9b5245b9bb8d113c0b)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: b67d3fd21b2e18c18b76dd9b5245b9bb8d113c0b

Requested commit: b67d3fd21b2e18c18b76dd9b5245b9bb8d113c0b

Commit: b67d3fd21b2e18c18b76dd9b5245b9bb8d113c0b

Tree: dbffb578c35bc887d4f62afb65e06b11532a8dba

Author: 5brian

Committer: GitHub

## Message

```
git_ui: Show disabled states in context menu (#28288)

Other elements in the git panel are shown as disabled when an action is
not actionable (For example: stage all, commit). Updating the context
menu to match this behavior when an action does nothing.

|Before|After|
|--|--|

|![image](https://github.com/user-attachments/assets/e517f758-216f-4451-911b-7121dce0c53b)|![image](https://github.com/user-attachments/assets/a85905c1-2f42-44c3-8b11-2f93c8a6f686)|





Release Notes:

- Git: Improved the Git panel context menu to show actions with no
effect as disabled.
```

## Parents

- [1cb4f8288db7f1e3d37c396fa6112ed1beba2b07](https://git.cafe/gitcafe/zed/commit/1cb4f8288db7f1e3d37c396fa6112ed1beba2b07?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/b67d3fd21b2e18c18b76dd9b5245b9bb8d113c0b?format=markdown)
