# Disable Git panel button to open commit editor in certain cases \(\#26000\) · gitcafe/zed

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

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

Visibility: public

Requested revision: 8c4da9fba06084aaeafcec1cdbe7794010099416

Requested commit: 8c4da9fba06084aaeafcec1cdbe7794010099416

Commit: 8c4da9fba06084aaeafcec1cdbe7794010099416

Tree: 255698965a1443e6125f6c073d29ebea6ee1316e

Author: Joseph T\. Lyons

Committer: GitHub

## Message

```
Disable Git panel button to open commit editor in certain cases (#26000)

Also:

- Internally renames a bit of code to make it easy to identify between
when we are disabling the buttons that open and close the modal editor
(in Git Panel and Project Diff) vs when we are disabling the commit
buttons (in Git Panel and Git commit editor modal).
- Deletes some unused code.

Release Notes:

- Unified disabling / enabling the button to open the Git commit editor
modal in the Git panel with the Project Diff commit button.
- Unified disabling / enabling the commit buttons, for the same cases,
between the Git panel and Git commit editor modal.
```

## Parents

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

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