only show download button on contact folders

This commit is contained in:
Christoph Haas 2016-06-14 00:23:34 +02:00
parent 35e1cf5b8e
commit 0256973507

View File

@ -288,7 +288,7 @@ Zarafa.plugins.contactimporter.ImportPlugin = Ext.extend(Zarafa.core.Plugin, {
break; break;
case Zarafa.core.data.SharedComponentType['common.contextmenu']: case Zarafa.core.data.SharedComponentType['common.contextmenu']:
if (record instanceof Zarafa.core.data.MAPIRecord) { if (record instanceof Zarafa.core.data.MAPIRecord) {
if (record.get('object_type') == Zarafa.core.mapi.ObjectType.MAPI_FOLDER) { if (record.get('object_type') == Zarafa.core.mapi.ObjectType.MAPI_FOLDER && record.get('container_class') == "IPF.Contact") {
bid = 2; bid = 2;
} }
} }