Closed Bug 1153431 Opened 9 years ago Closed 9 years ago

[Customizer] Add "Copy Node" feature

Categories

(Firefox OS Graveyard :: Gaia::Customizer, defect)

x86
macOS
defect
Not set
normal

Tracking

(Not tracked)

RESOLVED FIXED

People

(Reporter: justindarc, Assigned: justindarc)

References

Details

(Whiteboard: [spark])

Attachments

(1 file)

In order to improve efficiency when making DOM changes in the Customizer, we should offer the user a "Copy Node" option that behaves similarly to "Move Node" but also gives the user the ability to edit the copied HTML before inserting it in the DOM. This would allow for the user to be able to create new instances of complex pieces of UI such as custom buttons or dialog/modal boxes.
Bulk update to set the correct component and whiteboard.
Component: Gaia → Gaia::Customizer
Whiteboard: [spark]
Assignee: nobody → jdarcangelo
Attached file pull-request (master)
Attachment #8602330 - Flags: review?(drs)
Comment on attachment 8602330 [details] [review]
pull-request (master)

Looks good. I'm happy to see this change. I left some both small and general comments on the PR.
Attachment #8602330 - Flags: review?(drs) → review+
Landed on master:

https://github.com/fxos/customizer/commit/22d5c218973038104530d2fbb9259b8223537882

Made some of the suggested changes. Held off on doing some of the refactoring you suggested since it involves DRYing up the *generated* code and not the actual code itself. There may be a better way to do the code generation using templates and I'd rather give some more thought to this.
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: