File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change 10
10
class =" component-display grid-bg"
11
11
:style =" mockBg"
12
12
v-on:click =" handleClick"
13
+ v-on:click.right =" handleRight"
13
14
>
14
15
<!-- This is the actual component box -->
15
16
<!-- https://www.npmjs.com/package/vue-draggable-resizable -->
@@ -325,7 +326,6 @@ export default {
325
326
recordInitialPosition : function (e ) {
326
327
if (this .activeComponent !== e .target .id ) {
327
328
if (e .target .parentElement ? .classList .contains (' draggable' )){
328
- // console.log("using vanilla JS to WIN")
329
329
this .setActiveComponent (e .target .parentElement .id )
330
330
} else {
331
331
this .setActiveComponent (e .target .id );
@@ -455,7 +455,11 @@ export default {
455
455
this .setActiveComponent (" " );
456
456
}
457
457
},
458
- copyActiveComponent () {},
458
+ handleRight (event ) {
459
+ if (event .target .className === " component-display grid-bg" ) {
460
+ // right click modal to make a component?
461
+ }
462
+ },
459
463
},
460
464
watch: {
461
465
noteModalOpen (){
You can’t perform that action at this time.
0 commit comments