Commit 9feaf7d2 authored by Johan Degn's avatar Johan Degn
Browse files

Integrated action when clicking the pencil icon in the corner of a block

parent 9c0cc972
......@@ -10,7 +10,7 @@
<div @click="editBlock(colBlock.type, rowIndex, colIndex)" @mousedown="resizeHorizontal($event, rowIndex, colIndex)" @mouseup="saveAndStopResizing()" :id="rowIndex+','+colIndex" class="col"
v-show="!isDragged(rowIndex, colIndex)" v-for="(colBlock, colIndex) in rowBlock.blocks" :key="colIndex" :style="{ 'flex-grow': colBlock.width, 'order': colIndex }">
<component :is="colBlock.type" :row="rowIndex" :col="colIndex"></component>
<button class="hidden-row-item pencil">
<button class="hidden-row-item pencil" @click="editBlock('Edit', rowIndex, colIndex)">
<img v-svg-inline class="icon" src="@/assets/pencil.svg"/>
</button>
</div>
......@@ -106,20 +106,7 @@ export default {
data() {
return {
layout: [
{
height: 400,
blocks: [{type: "Calendar", width: 75}, {type: "ActiveCourses", width: 25}]
},
{
height: 250,
blocks: [{type: "Deadlines", width: 100}]
},
{
height: 300,
blocks: [{type: "Feed", width: 50}, {type: "Mail", width: 25}, {type: "Mail", width: 25}]
}
],
layout: [],
addBlockInfo: {
addBlocksActive: false,
chooseBlockActive: false,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment