fix import panels
This commit is contained in:
@@ -80,4 +80,3 @@ Espo.define('views/import/record/detail', 'views/record/detail', function (Dep)
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
|
||||
@@ -32,6 +32,11 @@ Espo.define('views/import/record/panels/duplicates', 'views/import/record/panels
|
||||
|
||||
link: 'duplicates',
|
||||
|
||||
setup: function () {
|
||||
this.title = this.title || this.translate('Duplicates', 'labels', 'Import');
|
||||
Dep.prototype.setup.call(this);
|
||||
},
|
||||
|
||||
actionUnmarkAsDuplicate: function (data) {
|
||||
var id = data.id;
|
||||
var type = data.type;
|
||||
@@ -49,4 +54,3 @@ Espo.define('views/import/record/panels/duplicates', 'views/import/record/panels
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -26,21 +26,21 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('Views.Import.Record.Panels.Imported', 'Views.Record.Panels.Relationship', function (Dep) {
|
||||
Espo.define('views/import/record/panels/imported', 'views/record/panels/relationship', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
link: 'imported',
|
||||
|
||||
readOlny: true,
|
||||
readOnly: true,
|
||||
|
||||
rowActionsView: 'Record.RowActions.RelationshipNoUnlink',
|
||||
rowActionsView: 'views/record/row-actions/relationship-no-unlink',
|
||||
|
||||
setup: function () {
|
||||
this.scope = this.model.get('entityType');
|
||||
this.title = this.title || this.translate('Imported', 'labels', 'Import');
|
||||
Dep.prototype.setup.call(this);
|
||||
}
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -26,14 +26,18 @@
|
||||
* these Appropriate Legal Notices must retain the display of the "EspoCRM" word.
|
||||
************************************************************************/
|
||||
|
||||
Espo.define('Views.Import.Record.Panels.Updated', 'Views.Import.Record.Panels.Imported', function (Dep) {
|
||||
Espo.define('views/import/record/panels/updated', 'views/import/record/panels/imported', function (Dep) {
|
||||
|
||||
return Dep.extend({
|
||||
|
||||
link: 'updated',
|
||||
|
||||
rowActionsView: 'Record.RowActions.RelationshipViewAndEdit',
|
||||
rowActionsView: 'views/record/row-actions/relationship-view-and-edit',
|
||||
|
||||
setup: function () {
|
||||
this.title = this.title || this.translate('Updated', 'labels', 'Import');
|
||||
Dep.prototype.setup.call(this);
|
||||
},
|
||||
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
@@ -54,7 +54,7 @@ Espo.define('views/record/panels/relationship', ['views/record/panels/bottom', '
|
||||
if (!this.scope && !(this.link in this.model.defs.links)) {
|
||||
throw new Error('Link \'' + this.link + '\' is not defined in model \'' + this.model.name + '\'');
|
||||
}
|
||||
this.title = this.translate(this.link, 'links', this.model.name);
|
||||
this.title = this.title || this.translate(this.link, 'links', this.model.name);
|
||||
this.scope = this.scope || this.model.defs.links[this.link].entity;
|
||||
|
||||
if (!this.getConfig().get('scopeColorsDisabled')) {
|
||||
@@ -66,7 +66,7 @@ Espo.define('views/record/panels/relationship', ['views/record/panels/bottom', '
|
||||
|
||||
var url = this.url || this.model.name + '/' + this.model.id + '/' + this.link;
|
||||
|
||||
if (!this.readOlny && !this.defs.readOnly) {
|
||||
if (!this.readOnly && !this.defs.readOnly) {
|
||||
if (!('create' in this.defs)) {
|
||||
this.defs.create = true;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user