mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
Nice done-editing
git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@8200 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -21,7 +21,8 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog
|
||||
{
|
||||
|
||||
private final static String MSG_DONE = "done";
|
||||
private final static String MSG_TITLE = "done_editing_title";
|
||||
private final static String MSG_TITLE_VERSIONABLE = "done_editing_title_versionable";
|
||||
private final static String MSG_TITLE_NOT_VERSIONABLE = "done_editing_title_not_versionable";
|
||||
|
||||
/**
|
||||
* @return Returns label for new version with major changes
|
||||
@@ -58,7 +59,14 @@ public class CCDoneEditingDialog extends CheckinCheckoutDialog
|
||||
@Override
|
||||
public String getContainerTitle()
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE) + " '" + property.getDocument().getName() + "'";
|
||||
if (property.getDocument().hasAspect(ContentModel.ASPECT_VERSIONABLE))
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_VERSIONABLE) + " '" + property.getDocument().getName() + "'";
|
||||
}
|
||||
else
|
||||
{
|
||||
return Application.getMessage(FacesContext.getCurrentInstance(), MSG_TITLE_NOT_VERSIONABLE) + " '" + property.getDocument().getName() + "'";
|
||||
}
|
||||
}
|
||||
|
||||
@Override
|
||||
|
Reference in New Issue
Block a user