Adds the functionality of warning dialog to ClosableTabComponent

Reported-by: bnurbekov
Signed-off-by: Batyrlan Nurbekov <bnurbekov@wpi.edu>