Skip to content

Commit

Permalink
Added an inspect button to GtGitRepositoryElement's toolbar
Browse files Browse the repository at this point in the history
  • Loading branch information
svenvc committed Oct 22, 2024
1 parent cb6586d commit 0ce222f
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/GToolkit4Git/GtGitRepositoryElement.class.st
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,15 @@ GtGitRepositoryElement >> createFetchRepositoryButton [
self fetchAllRepositoriesFrom: aButton ]
]

{ #category : #'building - actions' }
GtGitRepositoryElement >> createInspectRepositoryButton [
^ BrButton new
aptitude: BrGlamorousButtonWithIconAptitude;
icon: BrGlamorousVectorIcons inspect;
label: 'Inspect';
action: [ :aButton | aButton phlow spawnObject: self repositoryViewModel repositoryModel ]
]

{ #category : #'building - actions' }
GtGitRepositoryElement >> createPullRepositoryWithIncomingCommits: aListOfIncomingCommits [
| dropdownButton incomingLabel |
Expand Down Expand Up @@ -462,6 +471,7 @@ GtGitRepositoryElement >> updateToolbarElement [
addItem: (labelElement := self createRepositoryLabelElement);
addItem: self createRemoveRepositoryButton;
addItem: self createActionsHeaderSeparator;
addItem: self createInspectRepositoryButton;
addItem: self createFetchRepositoryButton.

incomingCommits := self repositoryViewModel incomingCommits.
Expand Down

0 comments on commit 0ce222f

Please sign in to comment.