Closed omar-bear closed 1 year ago
If you can also add the translation for the text when we are hovering the button to save (with the download icon), check the public/lang/mosaico-fr.json
file.
SonarCloud Quality Gate failed.
0 Bugs
0 Vulnerabilities
0 Security Hotspots
0 Code Smells
No Coverage information
45.0% Duplication
Catch issues before they fail your Quality Gate with our IDE extension SonarLint
Feature: Save Customized Block in LePatron
Description:
The primary goal of this feature is to allow users of LePatron to save an existing block after customizing it. This will enable them to add it to their predefined block library for future reuse.
Implementation Details:
Directory:
packages/editor/src/js/ext
Steps:
Modal for Saving Block Attributes: create a new file save-block-modal based on the other modals in the editor, for example:
packages/editor/src/js/vue/components/send-test/test-modal.js
packages/editor/src/js/ext/save-block-modal.js
Integrate Save Button in block-wysiwyg.tmpl.html:
packages/editor/src/tmpl/block-wysiwyg.tmpl.html
Control Button Behavior in viewmodel.js: in this file we already defined the role of the buttons duplicate and delete and here we need to define the behavior of save block button
packages/editor/src/js/viewmodel.js
save-block-modal.js
.Acceptance Criteria:
Result:
Example after saving the block: