Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Sebastian Gottschalk
bmdl-expert-modeler
Commits
dc0a973c
Commit
dc0a973c
authored
Nov 08, 2021
by
Alexander Philipp Nowosad
Browse files
Fix parameter types in canvas definition component
parent
85638a78
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/app/canvas/canvas-definition/canvas-definition/canvas-definition.component.ts
View file @
dc0a973c
...
...
@@ -2,7 +2,10 @@ import { Component, OnDestroy } from '@angular/core';
import
{
CanvasDefinition
}
from
'
../../../canvas-meta-model/canvas-definition
'
;
import
{
Subscription
}
from
'
rxjs
'
;
import
{
CanvasDefinitionService
}
from
'
../../../canvas-meta-model/canvas-definition.service
'
;
import
{
CanvasDefinitionRowFormService
}
from
'
../../form-services/canvas-definition-row-form.service
'
;
import
{
CanvasDefinitionCellFormValue
,
CanvasDefinitionRowFormService
,
}
from
'
../../form-services/canvas-definition-row-form.service
'
;
import
{
CanvasDefinitionCell
}
from
'
../../../canvas-meta-model/canvas-definition-cell
'
;
import
{
CanvasDefinitionLoaderService
}
from
'
../canvas-definition-loader.service
'
;
...
...
@@ -29,7 +32,7 @@ export class CanvasDefinitionComponent implements OnDestroy {
}
}
async
submitRowForm
(
value
:
an
y
):
Promise
<
void
>
{
async
submitRowForm
(
value
:
C
an
vasDefinitionCellFormValue
[][]
):
Promise
<
void
>
{
const
rows
=
this
.
canvasDefinitionRowFormService
.
get
(
value
);
await
this
.
canvasDefinitionService
.
updateRows
(
this
.
canvasDefinition
.
_id
,
...
...
@@ -37,7 +40,9 @@ export class CanvasDefinitionComponent implements OnDestroy {
);
}
toCanvasDefinitionRows
(
value
:
any
):
CanvasDefinitionCell
[][]
{
toCanvasDefinitionRows
(
value
:
{
rows
:
CanvasDefinitionCellFormValue
[][];
}):
CanvasDefinitionCell
[][]
{
if
(
value
==
null
)
{
return
this
.
canvasDefinition
.
rows
;
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment