@@ -100,27 +100,8 @@ int OSTreeTUI::main(const std::string& repo, const std::vector<std::string>& sta
100
100
return filterManager.branchBoxRender ();
101
101
});
102
102
103
- // promotion
104
- ContentPromotionManager promotionManager (showTooltips);
105
- promotionManager.setBranchRadiobox (Radiobox (&allBranches, &promotionManager.selectedBranch ));
106
- promotionManager.setApplyButton (Button (" Apply " , [&] {
107
- ostreeRepo.promoteCommit (visibleCommitViewMap.at (selectedCommit),
108
- ostreeRepo.getBranches ().at (static_cast <size_t >(promotionManager.selectedBranch )),
109
- {}, promotionManager.newSubject ,
110
- true );
111
- // refresh_repository();
112
- notificationText = " Applied content promotion. " ;
113
- }, ButtonOption::Simple ()));
114
- Component promotionView = Renderer (promotionManager.composePromotionComponent (), [&] {
115
- if (visibleCommitViewMap.size () <= 0 ) {
116
- return text (" please select a commit to continue commit-promotion... " ) | color (Color::RedLight) | bold | center;
117
- }
118
- return promotionManager.renderPromotionView (ostreeRepo, screen.dimy (),
119
- ostreeRepo.getCommitList ().at (visibleCommitViewMap.at (selectedCommit)));
120
- });
121
-
122
103
// interchangeable view (composed)
123
- Manager manager (infoView, filterView, promotionView );
104
+ Manager manager (infoView, filterView);
124
105
Component managerRenderer = manager.managerRenderer ;
125
106
126
107
// FOOTER
0 commit comments