mirror of
https://github.com/OCA/reporting-engine.git
synced 2025-02-16 16:30:38 +02:00
Drop bi views when uninstalling module
This commit is contained in:
@@ -1,7 +1,7 @@
|
||||
/* Copyright 2015-2018 Onestein (<http://www.onestein.eu>)
|
||||
* License AGPL-3.0 or later (https://www.gnu.org/licenses/agpl). */
|
||||
|
||||
odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
odoo.define('bi_view_editor.FieldList', function (require) {
|
||||
"use strict";
|
||||
|
||||
var core = require('web.core');
|
||||
@@ -9,14 +9,14 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
var Widget = require('web.Widget');
|
||||
|
||||
var FieldListContextMenu = Widget.extend({
|
||||
start: function() {
|
||||
start: function () {
|
||||
var res = this._super.apply(this, arguments);
|
||||
this.$el.mouseleave(function() {
|
||||
this.$el.mouseleave(function () {
|
||||
$(this).addClass('hidden');
|
||||
});
|
||||
return res;
|
||||
},
|
||||
open: function(x, y) {
|
||||
open: function (x, y) {
|
||||
this.$el.css({
|
||||
'left': x + 'px',
|
||||
'top': y + 'px'
|
||||
@@ -28,7 +28,7 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
|
||||
var FieldListFieldContextMenu = FieldListContextMenu.extend({
|
||||
template: 'bi_view_editor.FieldList.FieldContextMenu',
|
||||
open: function(x, y, field) {
|
||||
open: function (x, y, field) {
|
||||
this.$el.find('.checkbox-column').prop('checked', field.column);
|
||||
this.$el.find('.checkbox-row').prop('checked', field.row);
|
||||
this.$el.find('.checkbox-measure').prop('checked', field.measure);
|
||||
@@ -47,7 +47,7 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
|
||||
var events = this._super(x, y, field);
|
||||
this.$el.find('input').unbind('change');
|
||||
this.$el.find('input').change(function() {
|
||||
this.$el.find('input').change(function () {
|
||||
var $checkbox = $(this);
|
||||
var property = $checkbox.attr('data-for');
|
||||
field[property] = $checkbox.is(':checked');
|
||||
@@ -60,12 +60,12 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
|
||||
var FieldListJoinContextMenu = FieldListContextMenu.extend({
|
||||
template: 'bi_view_editor.FieldList.JoinContextMenu',
|
||||
open: function(x, y, node) {
|
||||
open: function (x, y, node) {
|
||||
this.$el.find('.checkbox-join-left').prop('checked', node.join_left);
|
||||
|
||||
var events = this._super(x, y, node);
|
||||
this.$el.find('input').unbind('change');
|
||||
this.$el.find('input').change(function() {
|
||||
this.$el.find('input').change(function () {
|
||||
var $checkbox = $(this);
|
||||
var property = $checkbox.attr('data-for');
|
||||
node[property] = $checkbox.is(':checked');
|
||||
@@ -81,7 +81,7 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
'click .delete-button': 'removeClicked',
|
||||
'keyup input[name="description"]': 'keyupDescription'
|
||||
},
|
||||
start: function() {
|
||||
start: function () {
|
||||
var res = this._super.apply(this, arguments);
|
||||
this.contextmenu = new FieldListFieldContextMenu(this);
|
||||
this.contextmenu.appendTo(this.$el);
|
||||
@@ -91,8 +91,8 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
this.mode = null;
|
||||
return res;
|
||||
},
|
||||
setMode: function(mode) {
|
||||
if(mode === 'readonly') {
|
||||
setMode: function (mode) {
|
||||
if (mode === 'readonly') {
|
||||
this.$el.find('input[type="text"]').attr('disabled', true);
|
||||
this.$el.find(".delete-button:last").addClass('hidden');
|
||||
} else {
|
||||
@@ -101,7 +101,7 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
}
|
||||
this.mode = mode;
|
||||
},
|
||||
get: function() {
|
||||
get: function () {
|
||||
return $.makeArray(this.$el.find("tbody tr").map(function () {
|
||||
var field = $(this).data('field');
|
||||
field.description = $(this).find('input[name="description"]').val();
|
||||
@@ -127,20 +127,20 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
});
|
||||
return model_data;
|
||||
},
|
||||
add: function(field) {
|
||||
add: function (field) {
|
||||
var self = this;
|
||||
field.row = typeof field.row === 'undefined' ? false : field.row;
|
||||
field.column = typeof field.column === 'undefined' ? false : field.column;
|
||||
field.measure = typeof field.measure === 'undefined' ? false : field.measure;
|
||||
field.list = typeof field.list === 'undefined' ? true : field.list;
|
||||
field._id = typeof field._id === 'undefined' ? _.uniqueId('node_') : field._id;
|
||||
if(field.join_node) {
|
||||
if (field.join_node) {
|
||||
field.join_left = typeof field.join_left === 'undefined' ? false : field.join_left;
|
||||
}
|
||||
|
||||
var i = 0;
|
||||
var name = field.name;
|
||||
while (this.get().filter(function(item) {
|
||||
while (this.get().filter(function (item) {
|
||||
return item.name === field.name;
|
||||
}).length > 0) {
|
||||
field.name = name + '_' + i;
|
||||
@@ -150,9 +150,9 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
// Render table row
|
||||
var $html = $(qweb.render(field.join_node ? 'bi_view_editor.JoinListItem' : 'bi_view_editor.FieldListItem', {
|
||||
'field': field
|
||||
})).data('field', field).contextmenu(function(e) {
|
||||
})).data('field', field).contextmenu(function (e) {
|
||||
var $item = $(this);
|
||||
if(self.mode === 'readonly') {
|
||||
if (self.mode === 'readonly') {
|
||||
return;
|
||||
}
|
||||
e.preventDefault();
|
||||
@@ -165,7 +165,7 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
this.$el.find(".delete-button:last").removeClass('hidden');
|
||||
this.order();
|
||||
},
|
||||
remove: function(id) {
|
||||
remove: function (id) {
|
||||
var $item = this.$el.find('tr[data-id="' + id + '"]');
|
||||
$item.remove();
|
||||
this.cleanJoinNodes();
|
||||
@@ -173,53 +173,53 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
this.$el.find(".delete-button:last").removeClass('hidden');
|
||||
this.trigger('removed', id);
|
||||
},
|
||||
set: function(fields) {
|
||||
set: function (fields) {
|
||||
var set_fields = fields;
|
||||
if (!set_fields) {
|
||||
set_fields = [];
|
||||
}
|
||||
this.$el.find('tbody tr').remove();
|
||||
for(var i = 0; i < set_fields.length; i++) {
|
||||
for (var i = 0; i < set_fields.length; i++) {
|
||||
this.add(set_fields[i]);
|
||||
}
|
||||
this.$el.find(".delete-button").addClass('hidden');
|
||||
this.$el.find(".delete-button:last").removeClass('hidden');
|
||||
},
|
||||
openContextMenu: function($item, x, y) {
|
||||
openContextMenu: function ($item, x, y) {
|
||||
var field = $item.data('field');
|
||||
var contextmenu = field.join_node ? this.contextmenu_join : this.contextmenu;
|
||||
// Temporary disable contextmenu for join node (until left join is implemented)
|
||||
if (field.join_node) {
|
||||
return;
|
||||
}
|
||||
contextmenu.open(x - 20, y - 20, $item.data('field')).on('change', function(f) {
|
||||
contextmenu.open(x - 20, y - 20, $item.data('field')).on('change', function (f) {
|
||||
$item.data('field', f);
|
||||
this.refreshItem($item);
|
||||
this.trigger('updated');
|
||||
}.bind(this));
|
||||
},
|
||||
refreshItem: function($item) {
|
||||
refreshItem: function ($item) {
|
||||
var data = $item.data('field');
|
||||
var $attributes = $item.find('span[data-for], img[data-for]');
|
||||
$.each($attributes, function() {
|
||||
$.each($attributes, function () {
|
||||
var $attribute = $(this);
|
||||
var value = data[$attribute.attr('data-for')];
|
||||
if(value) {
|
||||
if (value) {
|
||||
$attribute.removeClass('hidden');
|
||||
} else {
|
||||
$attribute.addClass('hidden');
|
||||
}
|
||||
});
|
||||
},
|
||||
removeClicked: function(e) {
|
||||
removeClicked: function (e) {
|
||||
var $button = $(e.currentTarget);
|
||||
var id = $button.attr('data-id');
|
||||
this.remove(id);
|
||||
},
|
||||
keyupDescription: function() {
|
||||
keyupDescription: function () {
|
||||
this.trigger('updated');
|
||||
},
|
||||
cleanJoinNodes: function() {
|
||||
cleanJoinNodes: function () {
|
||||
var aliases = $.makeArray(this.$el.find("tbody tr").map(function () {
|
||||
var data = $(this).data('field');
|
||||
return data.table_alias.localeCompare(data.join_node) > 0 ? data.join_node : data.table_alias;
|
||||
@@ -238,22 +238,22 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
}
|
||||
});
|
||||
},
|
||||
getOrder: function() {
|
||||
getOrder: function () {
|
||||
var items = this.get();
|
||||
var ordered = items.sort(function(a, b) {
|
||||
var ordered = items.sort(function (a, b) {
|
||||
var res = a.table_alias.localeCompare(b.table_alias);
|
||||
if (res === 0) {
|
||||
var both_join_node = a.join_node && b.join_node;
|
||||
var both_not_join_node = !a.join_node && !b.join_node;
|
||||
if(both_join_node || both_not_join_node) {
|
||||
if (both_join_node || both_not_join_node) {
|
||||
return 0;
|
||||
} else if(!a.join_node && b.join_node) {
|
||||
if(b.table_alias.localeCompare(b.join_node) > 0) {
|
||||
} else if (!a.join_node && b.join_node) {
|
||||
if (b.table_alias.localeCompare(b.join_node) > 0) {
|
||||
return 1;
|
||||
}
|
||||
return -1;
|
||||
} else if(a.join_node && !b.join_node) {
|
||||
if(a.table_alias.localeCompare(a.join_node) > 0) {
|
||||
} else if (a.join_node && !b.join_node) {
|
||||
if (a.table_alias.localeCompare(a.join_node) > 0) {
|
||||
return -1;
|
||||
}
|
||||
return 1;
|
||||
@@ -263,16 +263,16 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
});
|
||||
|
||||
var res = [];
|
||||
_.each(ordered, function(item) {
|
||||
var already_exists = _.findIndex(res, function(f) {
|
||||
_.each(ordered, function (item) {
|
||||
var already_exists = _.findIndex(res, function (f) {
|
||||
return f._id === item._id;
|
||||
}) !== -1;
|
||||
if(already_exists) {
|
||||
if (already_exists) {
|
||||
return;
|
||||
}
|
||||
res.push(item);
|
||||
if(item.join_node) {
|
||||
var join_node_fields = _.filter(ordered, function(f) {
|
||||
if (item.join_node) {
|
||||
var join_node_fields = _.filter(ordered, function (f) {
|
||||
return f.table_alias === item.join_node && !f.join_node;
|
||||
});
|
||||
res = _.union(res, join_node_fields);
|
||||
@@ -280,15 +280,15 @@ odoo.define('bi_view_editor.FieldList', function(require) {
|
||||
});
|
||||
return res;
|
||||
},
|
||||
order: function() {
|
||||
order: function () {
|
||||
var order = this.getOrder();
|
||||
var $rows = this.$el.find("tbody tr");
|
||||
|
||||
$rows.sort(function(a, b) {
|
||||
var a_index = _.findIndex(order, function(item) {
|
||||
$rows.sort(function (a, b) {
|
||||
var a_index = _.findIndex(order, function (item) {
|
||||
return item._id === $(a).data('field')._id;
|
||||
});
|
||||
var b_index = _.findIndex(order, function(item) {
|
||||
var b_index = _.findIndex(order, function (item) {
|
||||
return item._id === $(b).data('field')._id;
|
||||
});
|
||||
return a_index - b_index;
|
||||
|
||||
@@ -14,9 +14,9 @@ odoo.define('bi_view_editor.JoinNodeDialog', function (require) {
|
||||
'/bi_view_editor/static/src/xml/bi_view_editor.xml'
|
||||
]),
|
||||
events: {
|
||||
"click li": "choiceClicked",
|
||||
"click li": "choiceClicked"
|
||||
},
|
||||
init: function(parent, options, choices, model_data) {
|
||||
init: function (parent, options, choices, model_data) {
|
||||
this.choices = choices;
|
||||
// Prepare data for view
|
||||
for (var i = 0; i < choices.length; i++) {
|
||||
@@ -36,11 +36,11 @@ odoo.define('bi_view_editor.JoinNodeDialog', function (require) {
|
||||
text: _t("Cancel"),
|
||||
classes: "btn-default o_form_button_cancel",
|
||||
close: true
|
||||
}],
|
||||
}]
|
||||
});
|
||||
this._super(parent, defaults);
|
||||
},
|
||||
choiceClicked: function(e) {
|
||||
choiceClicked: function (e) {
|
||||
this.trigger('chosen', {
|
||||
choice: this.choices[$(e.currentTarget).attr('data-index')]
|
||||
});
|
||||
|
||||
@@ -14,7 +14,7 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
events: {
|
||||
'keyup .search-bar > input': 'filterChanged'
|
||||
},
|
||||
init: function(parent) {
|
||||
init: function (parent) {
|
||||
var res = this._super(parent);
|
||||
this.active_models = [];
|
||||
this.cache_fields = {};
|
||||
@@ -22,8 +22,8 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
this.mode = null;
|
||||
return res;
|
||||
},
|
||||
setMode: function(mode) {
|
||||
if(mode === 'readonly') {
|
||||
setMode: function (mode) {
|
||||
if (mode === 'readonly') {
|
||||
this.$el.find('.search-bar').attr('disabled', true);
|
||||
this.$el.find('.class-list, .class').addClass('readonly');
|
||||
} else {
|
||||
@@ -32,17 +32,17 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
}
|
||||
this.mode = mode;
|
||||
},
|
||||
isActive: function(id) {
|
||||
isActive: function (id) {
|
||||
return this.active_models.indexOf(id) !== -1;
|
||||
},
|
||||
removeAsActive: function(id) {
|
||||
removeAsActive: function (id) {
|
||||
var i = this.active_models.indexOf(id);
|
||||
this.active_models.splice(i, 1);
|
||||
},
|
||||
addAsActive: function(id) {
|
||||
addAsActive: function (id) {
|
||||
this.active_models.push(id);
|
||||
},
|
||||
loadModels: function(model_ids) {
|
||||
loadModels: function (model_ids) {
|
||||
if (model_ids) {
|
||||
return this._rpc({
|
||||
model: 'ir.model',
|
||||
@@ -61,7 +61,7 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
}
|
||||
});
|
||||
},
|
||||
loadFields: function(model_id) {
|
||||
loadFields: function (model_id) {
|
||||
if (!(model_id in this.cache_fields)) {
|
||||
var deferred = this._rpc({
|
||||
model: 'ir.model',
|
||||
@@ -79,39 +79,39 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
var self = this;
|
||||
this.$el.find(".class-list").html('');
|
||||
|
||||
_.each(models, function(model) {
|
||||
_.each(models, function (model) {
|
||||
var $html = $(qweb.render('bi_view_editor.ModelListItem', {
|
||||
'id': model.id,
|
||||
'model': model.model,
|
||||
'name': model.name
|
||||
}));
|
||||
$html.find('.class').data('model', model).click(function() {
|
||||
$html.find('.class').data('model', model).click(function () {
|
||||
self.modelClicked($(this));
|
||||
});
|
||||
self.$el.find(".class-list").append($html);
|
||||
|
||||
if (self.isActive(model.id)) {
|
||||
self.loadFields(model.id).done(function(fields) {
|
||||
self.loadFields(model.id).done(function (fields) {
|
||||
self.populateFields(fields, model.id);
|
||||
});
|
||||
}
|
||||
});
|
||||
},
|
||||
populateFields: function(fields, model_id) {
|
||||
populateFields: function (fields, model_id) {
|
||||
var self = this;
|
||||
if(!model_id && fields.length === 0) {
|
||||
if (!model_id && fields.length === 0) {
|
||||
return;
|
||||
}
|
||||
var data_model_id = model_id;
|
||||
if(!data_model_id) {
|
||||
if (!data_model_id) {
|
||||
data_model_id = fields[0].model_id;
|
||||
}
|
||||
var $model_item = this.$el.find(".class[data-id='" + data_model_id + "']");
|
||||
_.each(fields, function(field) {
|
||||
_.each(fields, function (field) {
|
||||
var $field = $(qweb.render('bi_view_editor.ModelListFieldItem', {
|
||||
name: field.name,
|
||||
description: field.description
|
||||
})).data('field', field).click(function() {
|
||||
})).data('field', field).click(function () {
|
||||
self.fieldClicked($(this));
|
||||
}).draggable({
|
||||
'revert': 'invalid',
|
||||
@@ -124,36 +124,36 @@ odoo.define('bi_view_editor.ModelList', function (require) {
|
||||
|
||||
});
|
||||
},
|
||||
modelClicked: function($el) {
|
||||
modelClicked: function ($el) {
|
||||
if (this.mode === 'readonly') {
|
||||
return;
|
||||
}
|
||||
var model = $el.data('model');
|
||||
$el.parent().find('.field').remove();
|
||||
if(this.isActive(model.id)) {
|
||||
if (this.isActive(model.id)) {
|
||||
this.removeAsActive(model.id);
|
||||
} else {
|
||||
this.addAsActive(model.id);
|
||||
this.loadFields(model.id).done(function(fields) {
|
||||
this.loadFields(model.id).done(function (fields) {
|
||||
this.populateFields(fields, model.id);
|
||||
}.bind(this));
|
||||
}
|
||||
},
|
||||
fieldClicked: function($el) {
|
||||
fieldClicked: function ($el) {
|
||||
if (this.mode === 'readonly') {
|
||||
return;
|
||||
}
|
||||
this.trigger('field_clicked', $el.data('field'));
|
||||
},
|
||||
filterChanged: function(e) {
|
||||
filterChanged: function (e) {
|
||||
var $input = $(e.target);
|
||||
this.filter($input.val());
|
||||
},
|
||||
filter: function(value) {
|
||||
filter: function (value) {
|
||||
this.active_models = [];
|
||||
this.$el.find('.field').remove();
|
||||
var val = typeof value === 'undefined' ? this.current_filter : value.toLowerCase();
|
||||
this.$el.find(".class").each(function() {
|
||||
this.$el.find(".class").each(function () {
|
||||
var data = $(this).data('model');
|
||||
if (data.name.toLowerCase().indexOf(val) === -1 &&
|
||||
data.model.toLowerCase().indexOf(val) === -1) {
|
||||
|
||||
@@ -17,14 +17,14 @@ odoo.define('bi_view_editor', function (require) {
|
||||
events: {
|
||||
"click .clear-btn": "clear"
|
||||
},
|
||||
start: function() {
|
||||
start: function () {
|
||||
var self = this;
|
||||
var res = this._super.apply(this, arguments);
|
||||
|
||||
// Init ModelList
|
||||
this.model_list = new ModelList(this);
|
||||
this.model_list.appendTo(this.$(".body > .left"));
|
||||
this.model_list.on('field_clicked', this, function(field) {
|
||||
this.model_list.on('field_clicked', this, function (field) {
|
||||
self.addField(_.extend({}, field));
|
||||
});
|
||||
|
||||
@@ -42,7 +42,7 @@ odoo.define('bi_view_editor', function (require) {
|
||||
}
|
||||
});
|
||||
|
||||
this.on("change:effective_readonly", this, function() {
|
||||
this.on("change:effective_readonly", this, function () {
|
||||
this.updateMode();
|
||||
});
|
||||
this.renderValue();
|
||||
@@ -50,22 +50,22 @@ odoo.define('bi_view_editor', function (require) {
|
||||
this.updateMode();
|
||||
return res;
|
||||
},
|
||||
clear: function() {
|
||||
clear: function () {
|
||||
if (this.mode !== 'readonly') {
|
||||
this.field_list.set([]);
|
||||
this.loadAndPopulateModelList();
|
||||
this._setValue(this.field_list.get());
|
||||
}
|
||||
},
|
||||
fieldListChanged: function() {
|
||||
fieldListChanged: function () {
|
||||
this._setValue(this.field_list.get());
|
||||
},
|
||||
fieldListRemoved: function() {
|
||||
fieldListRemoved: function () {
|
||||
console.log(this.field_list.get());
|
||||
this.loadAndPopulateModelList();
|
||||
this._setValue(this.field_list.get());
|
||||
},
|
||||
renderValue: function() {
|
||||
renderValue: function () {
|
||||
this.field_list.set(JSON.parse(this.value));
|
||||
},
|
||||
updateMode: function () {
|
||||
@@ -79,16 +79,16 @@ odoo.define('bi_view_editor', function (require) {
|
||||
this.field_list.setMode(this.mode);
|
||||
this.model_list.setMode(this.mode);
|
||||
},
|
||||
loadAndPopulateModelList: function() {
|
||||
loadAndPopulateModelList: function () {
|
||||
var model_ids = null;
|
||||
if (this.field_list.get().length > 0) {
|
||||
model_ids = this.field_list.getModelIds();
|
||||
}
|
||||
this.model_list.loadModels(model_ids).done(function(models) {
|
||||
this.model_list.loadModels(model_ids).done(function (models) {
|
||||
this.model_list.populateModels(models);
|
||||
}.bind(this));
|
||||
},
|
||||
getTableAlias: function(field) {
|
||||
getTableAlias: function (field) {
|
||||
if (typeof field.table_alias === 'undefined') {
|
||||
var model_ids = this.field_list.getModelIds();
|
||||
var n = 0;
|
||||
@@ -99,7 +99,7 @@ odoo.define('bi_view_editor', function (require) {
|
||||
}
|
||||
return field.table_alias;
|
||||
},
|
||||
addFieldAndJoinNode: function(field, join_node) {
|
||||
addFieldAndJoinNode: function (field, join_node) {
|
||||
if (join_node.join_node === -1 || join_node.table_alias === -1) {
|
||||
field.table_alias = this.getTableAlias(field);
|
||||
if (join_node.join_node === -1) {
|
||||
@@ -116,16 +116,16 @@ odoo.define('bi_view_editor', function (require) {
|
||||
this.loadAndPopulateModelList();
|
||||
this._setValue(this.field_list.get());
|
||||
},
|
||||
addField: function(field) {
|
||||
addField: function (field) {
|
||||
var data = _.extend({}, field);
|
||||
var model = new Data.DataSet(this, "ir.model");
|
||||
var field_data = this.field_list.get();
|
||||
model.call('get_join_nodes', [field_data, data]).then(function(result) {
|
||||
model.call('get_join_nodes', [field_data, data]).then(function (result) {
|
||||
if (result.length === 1) {
|
||||
this.addFieldAndJoinNode(data, result[0]);
|
||||
} else if (result.length > 1) {
|
||||
var dialog = new JoinNodeDialog(this, {}, result, this.field_list.getModelData());
|
||||
dialog.open().on('chosen', this, function(e) {
|
||||
dialog.open().on('chosen', this, function (e) {
|
||||
this.addFieldAndJoinNode(data, e.choice);
|
||||
});
|
||||
} else {
|
||||
@@ -137,7 +137,7 @@ odoo.define('bi_view_editor', function (require) {
|
||||
}
|
||||
}.bind(this));
|
||||
},
|
||||
_parseValue: function(value) {
|
||||
_parseValue: function (value) {
|
||||
return JSON.stringify(value);
|
||||
}
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user