CCM NG/ccm-cms FolderBrower: Link deleting non-live items now show up.
git-svn-id: https://svn.libreccm.org/ccm/ccm_ng@4590 8810af33-2d31-482b-a856-94f89814c4dfccm-docs
parent
4e1c732e57
commit
392131514b
|
|
@ -29,6 +29,7 @@ import org.libreccm.l10n.GlobalizationHelper;
|
||||||
import org.librecms.CmsConstants;
|
import org.librecms.CmsConstants;
|
||||||
import org.librecms.contentsection.ContentItem;
|
import org.librecms.contentsection.ContentItem;
|
||||||
import org.librecms.contentsection.ContentItemL10NManager;
|
import org.librecms.contentsection.ContentItemL10NManager;
|
||||||
|
import org.librecms.contentsection.ContentItemManager;
|
||||||
import org.librecms.contentsection.ContentItemVersion;
|
import org.librecms.contentsection.ContentItemVersion;
|
||||||
import org.librecms.contentsection.ContentType;
|
import org.librecms.contentsection.ContentType;
|
||||||
import org.librecms.contentsection.Folder;
|
import org.librecms.contentsection.Folder;
|
||||||
|
|
@ -90,6 +91,9 @@ public class FolderBrowserController {
|
||||||
@Inject
|
@Inject
|
||||||
private ContentTypesManager typesManager;
|
private ContentTypesManager typesManager;
|
||||||
|
|
||||||
|
@Inject
|
||||||
|
private ContentItemManager itemManager;
|
||||||
|
|
||||||
private Locale defaultLocale;
|
private Locale defaultLocale;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
@ -371,6 +375,8 @@ public class FolderBrowserController {
|
||||||
row.setTypeLabelBundle(typeInfo.getLabelBundle());
|
row.setTypeLabelBundle(typeInfo.getLabelBundle());
|
||||||
row.setTypeLabelKey(typeInfo.getLabelKey());
|
row.setTypeLabelKey(typeInfo.getLabelKey());
|
||||||
|
|
||||||
|
row.setDeletable(!itemManager.isLive(item));
|
||||||
|
|
||||||
row.setCreated(item.getCreationDate());
|
row.setCreated(item.getCreationDate());
|
||||||
row.setLastModified(item.getLastModified());
|
row.setLastModified(item.getLastModified());
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue