some ui improvements
This commit is contained in:
@@ -53,7 +53,8 @@ Zarafa.plugins.contactimporter.dialogs.ImportContentPanel = Ext.extend(Zarafa.co
|
||||
items : [
|
||||
{
|
||||
xtype : 'contactimporter.importcontactpanel',
|
||||
filename: config.filename
|
||||
filename: config.filename,
|
||||
folder: config.folder
|
||||
}
|
||||
]
|
||||
});
|
||||
|
@@ -39,6 +39,9 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, {
|
||||
/* The store for the selection grid */
|
||||
store : null,
|
||||
|
||||
/* selected folder */
|
||||
folder : null,
|
||||
|
||||
/**
|
||||
* @constructor
|
||||
* @param {object} config
|
||||
@@ -51,6 +54,10 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, {
|
||||
this.vcffile = config.filename;
|
||||
}
|
||||
|
||||
if (!Ext.isEmpty(config.folder)) {
|
||||
this.folder = config.folder;
|
||||
}
|
||||
|
||||
// create the data store
|
||||
// we only display the firstname, lastname, homephone and primary email address in our grid
|
||||
this.store = new Ext.data.ArrayStore({
|
||||
@@ -224,7 +231,7 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, {
|
||||
name : "choosen_addressbook",
|
||||
value : container.getSettingsModel().get("zarafa/v1/plugins/contactimporter/default_addressbook"),
|
||||
width : 100,
|
||||
fieldLabel : "Select an addressbook",
|
||||
fieldLabel : "Select folder",
|
||||
store : myStore,
|
||||
mode : 'local',
|
||||
labelSeperator: ":",
|
||||
@@ -245,6 +252,7 @@ Zarafa.plugins.contactimporter.dialogs.ImportPanel = Ext.extend(Ext.Panel, {
|
||||
emptyText : 'Select an .vcf addressbook',
|
||||
border : false,
|
||||
anchor : "100%",
|
||||
height : "30",
|
||||
scope : this,
|
||||
allowBlank : false,
|
||||
listeners : {
|
||||
|
Reference in New Issue
Block a user