Search in sources :

Example 1 with DeleteBranchPopUpScreen

use of org.kie.workbench.common.screens.library.client.screens.project.branch.delete.DeleteBranchPopUpScreen in project kie-wb-common by kiegroup.

the class ProjectScreen method deleteBranch.

public void deleteBranch() {
    projectController.canDeleteBranch(workspaceProject).then(userCanDeleteBranch -> {
        if (userCanDeleteBranch) {
            final DeleteBranchPopUpScreen popUp = deleteBranchPopUpScreen.get();
            popUp.show(this.libraryPlaces.getActiveWorkspace().getBranch());
        }
        return promises.resolve();
    });
}
Also used : DeleteBranchPopUpScreen(org.kie.workbench.common.screens.library.client.screens.project.branch.delete.DeleteBranchPopUpScreen)

Aggregations

DeleteBranchPopUpScreen (org.kie.workbench.common.screens.library.client.screens.project.branch.delete.DeleteBranchPopUpScreen)1