[FIX] website: reload connectors on step column duplication/deletion
This commit allows to regenerate the connectors of the step block when one of the columns of the block is duplicated or deleted. Steps to reproduce the fixed bug: - Drop a steps block - Duplicate one of the columns => The last column of the first row has a connector to the right of the page. closes odoo/odoo#102797 X-original-commit: 56522f4a26c95878bb726f54eb02c8c948576875 Signed-off-by: Quentin Smetz (qsm) <qsm@odoo.com>
This commit is contained in:
committed by
qsm-odoo
parent
7593c073d2
commit
c2ae012505
@@ -4,6 +4,20 @@ import options from 'web_editor.snippets.options';
|
||||
import weUtils from 'web_editor.utils';
|
||||
|
||||
options.registry.StepsConnector = options.Class.extend({
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
start() {
|
||||
this.$target.on('content_changed.StepsConnector', () => this._reloadConnectors());
|
||||
return this._super(...arguments);
|
||||
},
|
||||
/**
|
||||
* @override
|
||||
*/
|
||||
destroy() {
|
||||
this._super(...arguments);
|
||||
this.$target.off('.StepsConnector');
|
||||
},
|
||||
|
||||
//--------------------------------------------------------------------------
|
||||
// Options
|
||||
|
||||
Reference in New Issue
Block a user