Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Q
Quasar Components MoSys
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Test Cases
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Motion Bank
MB.js
Quasar Components MoSys
Compare Revisions
f711ea6c445e4851f8bdc4019657466cc2c21e42...45e5cc4d3ac5ad38f37b6e256355feed27910c95
Source
45e5cc4d3ac5ad38f37b6e256355feed27910c95
Select Git revision
...
Target
f711ea6c445e4851f8bdc4019657466cc2c21e42
Select Git revision
Compare
Commits (2)
commented out mobileTempCell.button
· af263612
christianrhansen
authored
Nov 06, 2019
af263612
renaming function (handleCellInfoTouch -> handleCellEdit)
· 45e5cc4d
christianrhansen
authored
Nov 07, 2019
45e5cc4d
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
12 deletions
+12
-12
partials/GridEditor.vue
partials/GridEditor.vue
+12
-12
No files found.
partials/GridEditor.vue
View file @
45e5cc4d
...
@@ -41,7 +41,7 @@
...
@@ -41,7 +41,7 @@
strong
{{
selectedCell
.
type
}}
strong
{{
selectedCell
.
type
}}
q-item-side
q-item-side
q-btn.text-white.q-px-sm(@click="event => {handleCell
InfoTouch
(event, selectedCell.annotation)}", flat)
q-btn.text-white.q-px-sm(@click="event => {handleCell
Edit
(event, selectedCell.annotation)}", flat)
q-icon(name="edit")
q-icon(name="edit")
q-btn.text-white.q-px-sm.on-right.on-left(@click="event => {handleCellContextMenuDelete(event, mobileSelectedCell)}",
q-btn.text-white.q-px-sm.on-right.on-left(@click="event => {handleCellContextMenuDelete(event, mobileSelectedCell)}",
...
@@ -103,20 +103,20 @@
...
@@ -103,20 +103,20 @@
//--------------------------------------------------------------------------------------------------- mobile
//--------------------------------------------------------------------------------------------------- mobile
.mobile-only
.mobile-only
.edit-button.absolute.fit.bg-transparent(
.edit-button.absolute.fit.bg-transparent(
v-touch-hold="event => {handleCell
InfoTouch
(event, annotation)}",
v-touch-hold="event => {handleCell
Edit
(event, annotation)}",
@click.prevent="event => {touchMobileCell(event, annotation)}")
@click.prevent="event => {touchMobileCell(event, annotation)}")
//
//
q-btn.absolute-top-right.text-dark.q-pa-none.q-mr-xs(
q-btn.absolute-top-right.text-dark.q-pa-none.q-mr-xs(
v-if="showEditingCells",
v-if="showEditingCells",
@click.prevent="event => {handleCell
InfoTouch
(event, annotation)}",
@click.prevent="event => {handleCell
Edit
(event, annotation)}",
flat, round, size="sm", style="margin-top: 2px;")
flat, round, size="sm", style="margin-top: 2px;")
q-icon(name="edit", size="20px")
q-icon(name="edit", size="20px")
//----- invisible edit-modal handler
//----- invisible edit-modal handler
//
//
q-btn.absolute-top-left.bg-blue(
q-btn.absolute-top-left.bg-blue(
@click.prevent="event => {handleCell
InfoTouch
(event, annotation)}", flat, style="opacity: 0") bla
@click.prevent="event => {handleCell
Edit
(event, annotation)}", flat, style="opacity: 0") bla
// @click.prevent="handleModal()", flat, style="opacity: 0") bla
// @click.prevent="handleModal()", flat, style="opacity: 0") bla
//----- selecting cells disabled because it has no use currently
//----- selecting cells disabled because it has no use currently
...
@@ -566,7 +566,7 @@
...
@@ -566,7 +566,7 @@
if
(
obj
.
isFirst
)
{
if
(
obj
.
isFirst
)
{
this
.
activeHandler
=
true
this
.
activeHandler
=
true
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
button
=
false
//
this.mobileTempCell.button = false
this
.
cellHandler
.
move
.
pushed
=
true
this
.
cellHandler
.
move
.
pushed
=
true
}
}
...
@@ -582,7 +582,7 @@
...
@@ -582,7 +582,7 @@
if
(
obj
.
isFinal
)
{
if
(
obj
.
isFinal
)
{
this
.
activeHandler
=
false
this
.
activeHandler
=
false
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
button
=
true
//
this.mobileTempCell.button = true
this
.
mobileTempCell
.
left
=
this
.
gridDimensions
.
full
.
cell
.
width
*
(
res
.
x
-
1
)
this
.
mobileTempCell
.
left
=
this
.
gridDimensions
.
full
.
cell
.
width
*
(
res
.
x
-
1
)
this
.
cellHandler
.
move
.
pushed
=
false
this
.
cellHandler
.
move
.
pushed
=
false
// this.cellHandler.move.y = this.gridDimensions.full.cell.height * (res.y - 1) + 8 + 59 + 20
// this.cellHandler.move.y = this.gridDimensions.full.cell.height * (res.y - 1) + 8 + 59 + 20
...
@@ -608,7 +608,7 @@
...
@@ -608,7 +608,7 @@
if
(
obj
.
isFirst
)
{
if
(
obj
.
isFirst
)
{
this
.
activeHandler
=
true
this
.
activeHandler
=
true
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
button
=
false
//
this.mobileTempCell.button = false
this
.
cellHandler
.
resize
.
pushed
=
true
this
.
cellHandler
.
resize
.
pushed
=
true
}
}
...
@@ -621,7 +621,7 @@
...
@@ -621,7 +621,7 @@
if
(
obj
.
isFinal
)
{
if
(
obj
.
isFinal
)
{
this
.
activeHandler
=
false
this
.
activeHandler
=
false
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
button
=
true
//
this.mobileTempCell.button = true
this
.
cellHandler
.
resize
.
pushed
=
false
this
.
cellHandler
.
resize
.
pushed
=
false
// this.addMobileCell(obj)
// this.addMobileCell(obj)
// this.mobileTempCell.show = false
// this.mobileTempCell.show = false
...
@@ -629,8 +629,8 @@
...
@@ -629,8 +629,8 @@
this
.
cellHandler
.
resize
.
y
=
this
.
gridDimensions
.
full
.
cell
.
height
*
res
.
y
-
8
-
20
this
.
cellHandler
.
resize
.
y
=
this
.
gridDimensions
.
full
.
cell
.
height
*
res
.
y
-
8
-
20
}
}
},
},
handleCell
InfoTouch
(
event
,
annotation
)
{
handleCell
Edit
(
event
,
annotation
)
{
console
.
log
(
'
handleCell
InfoTouch
'
,
annotation
)
console
.
log
(
'
handleCell
Edit
'
,
annotation
)
this
.
touchMobileCell
(
event
,
annotation
)
this
.
touchMobileCell
(
event
,
annotation
)
this
.
handleModal
()
this
.
handleModal
()
},
},
...
@@ -654,7 +654,7 @@
...
@@ -654,7 +654,7 @@
if
(
obj
.
isFirst
)
{
if
(
obj
.
isFirst
)
{
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
show
=
true
this
.
mobileTempCell
.
button
=
false
//
this.mobileTempCell.button = false
this
.
mobileTempCell
.
x
=
res
.
x
this
.
mobileTempCell
.
x
=
res
.
x
this
.
mobileTempCell
.
y
=
res
.
y
this
.
mobileTempCell
.
y
=
res
.
y
}
}
...
@@ -664,7 +664,7 @@
...
@@ -664,7 +664,7 @@
if
(
obj
.
isFinal
)
{
if
(
obj
.
isFinal
)
{
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
onGrid
=
true
this
.
mobileTempCell
.
button
=
true
//
this.mobileTempCell.button = true
// this.addMobileCell(obj)
// this.addMobileCell(obj)
// this.mobileTempCell.show = false
// this.mobileTempCell.show = false
this
.
cellHandler
.
move
.
x
=
this
.
gridDimensions
.
full
.
cell
.
width
*
(
this
.
mobileTempCell
.
x
-
1
)
+
8
+
20
this
.
cellHandler
.
move
.
x
=
this
.
gridDimensions
.
full
.
cell
.
width
*
(
this
.
mobileTempCell
.
x
-
1
)
+
8
+
20
...
...