Skip to content
This repository has been archived by the owner on Dec 16, 2024. It is now read-only.

dotCMS/core#21552 Add forms from content palette error #1868

Merged
merged 6 commits into from
Feb 7, 2022

Conversation

hmoreras
Copy link
Contributor

@hmoreras hmoreras commented Feb 3, 2022

Proposed Changes

  • add forms on drop correctly.

Checklist

  • [x ] Tests

@CLAassistant
Copy link

CLA assistant check
Thank you for your submission! We really appreciate it. Like many open source projects, we ask that you sign our Contributor License Agreement before we can accept your contribution.
You have signed the CLA already but the status is still pending? Let us recheck it.

* @memberof DotEditContentHtmlService
*/
renderAddedForm(form: DotCMSContentType): Observable<DotPageContainer[]> {
renderAddedForm(formId: string, isDroppedAsset = false): Observable<DotPageContainer[]> {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What means when isDroppedAsset is true?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

that we need to find the placeholder and set the current container. When the form is selected from the form list, that is set already previously .

Comment on lines 310 to 311
let contentletPlaceholder = doc.querySelector(CONTENTLET_PLACEHOLDER_SELECTOR);
if (!contentletPlaceholder) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
let contentletPlaceholder = doc.querySelector(CONTENTLET_PLACEHOLDER_SELECTOR);
if (!contentletPlaceholder) {
let contentletPlaceholder = doc.querySelector(CONTENTLET_PLACEHOLDER_SELECTOR);
if (!contentletPlaceholder) {

@fmontes fmontes merged commit 8b9cad6 into release-22.02 Feb 7, 2022
@delete-merged-branch delete-merged-branch bot deleted the issue-21552 branch February 7, 2022 16:24
fmontes added a commit that referenced this pull request Feb 10, 2022
* update release version for dotcms-ui & dotcms-webcomponents

* CI: bumps version to 22.2.0-rc.2 [skip ci]

* dotCMS/core#21504 Template designer: container selector breaks while there are "Unsave Changes"

* CI: bumps version to 22.2.0-rc.2 [skip ci]

* dotCMS/core#21436 Enable the bring back button (#1846)

* CI: bumps version to 22.2.0-rc.3 [skip ci]

* dotCMS/core#21540 Add a form from the Contentlet palette in edit page is not working

* CI: bumps version to 22.2.0-rc.4 [skip ci]

* dotCMS/core#21122 Replace What's changed with the htmldiff js library (#1855)

* replace backend library

* cleanup

* tests

* cleanup

* error handler

* CI: bumps version to 22.2.0-rc.5 [skip ci]

* dotCMS/core#21600 Remove "Unsaved changes" from auto saving

* dotCMS/core#21240  Show global message on inline editing (#1861)

* dotCMS/core #21436 Prevent the redirect of the page when we are in edit mode

* CI: bumps version to 22.2.0-rc.6 [skip ci]

* dotCMS/core#21599 Push Publishing Workflow Dialog is missing timezoneId

* CI: bumps version to 22.2.0-rc.7 [skip ci]

* dotCMS/core#21552 Avoid trigger the original form submit event (#1862)

* dotCMS/core#21552 Add forms from content palette error  (#1868)

* initial progress

* cleanup

* test updates

* test updates

* feedback

* rename functions

* CI: bumps version to 22.2.0-rc.8 [skip ci]

* dotCMS/core#21656 Once a fileAsset is saved. the file itself can not be replaced using Save (#1872)

* CI: bumps version to 22.2.0-rc.3 [skip ci]

* dotCMS/core#21558 Edit Template Properties Modal makes changes get lost (#1865)

* fix: Must supply a value for form control with name: 'title'

* remove dot-template store service from Dot Template Advanced Component

* fix: Edit Template Properties Modal makes changes get lost on advance template

* fix: Edit Template Properties Modal makes changes get lost on design template

* update template design

* clean up

* feedback

* clean up

* fix dot-template store tests

* fix tests on dot-template-create-edit

* fix dot-template-builder tests

* fix dot-template tests

* fix DotEditLayoutComponent

* clean up

* rename saveDraft to updateTemplate

* add docs

* feedback

* feedback

* clean up

* feedback

* clean up

* fix doc

* CI: bumps version to 22.2.0-rc.9 [skip ci]

* Update package

* Update package-lock

* Clean up

* Fix conflicts

* CI: bumps version to 22.3.0-next.13 [skip ci]

Co-authored-by: victoralfaro-dotcms <[email protected]>
Co-authored-by: Rafael Velazco <[email protected]>
Co-authored-by: Humberto Morera <[email protected]>
Co-authored-by: Freddy Rodriguez <[email protected]>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants