Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
F
Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Jira
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Package Registry
Model registry
Operate
Terraform modules
Monitor
Service Desk
Analyze
Contributor analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
HUB Terra
SMS
Frontend
Commits
d4154b73
Commit
d4154b73
authored
2 years ago
by
Tobias Kuhnert
Browse files
Options
Downloads
Patches
Plain Diff
progress on build errors, store and locations missing
parent
13cc3c11
No related branches found
No related tags found
2 merge requests
!296
Merge develop for staging release
,
!225
Draft: Resolve "[Refactoring] Improve vuex store usage"
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
store/configurations.ts
+6
-6
6 additions, 6 deletions
store/configurations.ts
with
6 additions
and
6 deletions
store/configurations.ts
+
6
−
6
View file @
d4154b73
...
...
@@ -167,7 +167,7 @@ const getters = {
return
result
},
locationActionsDates
:
(
state
:
configurationsState
)
=>
{
let
result
=
[]
let
result
:{
type
:
string
,
value
:}[]
=
[]
if
(
state
.
configuration
)
{
const
datesWithTexts
=
[]
...
...
@@ -247,11 +247,11 @@ const actions = {
const
totalPages
=
Math
.
ceil
(
totalCount
/
state
.
pageSize
)
commit
(
'
setTotalPages
'
,
totalPages
)
},
async
loadConfiguration
({
commit
}:
{
commit
:
Commit
},
id
:
number
)
{
async
loadConfiguration
({
commit
}:
{
commit
:
Commit
},
id
:
string
)
{
const
configuration
=
await
this
.
$api
.
configurations
.
findById
(
id
)
commit
(
'
setConfiguration
'
,
configuration
)
},
async
loadConfigurationContacts
({
commit
}:
{
commit
:
Commit
},
id
:
number
)
{
async
loadConfigurationContacts
({
commit
}:
{
commit
:
Commit
},
id
:
string
)
{
const
configurationContacts
=
await
this
.
$api
.
configurations
.
findRelatedContacts
(
id
)
commit
(
'
setConfigurationContacts
'
,
configurationContacts
)
},
...
...
@@ -265,7 +265,7 @@ const actions = {
const
projects
=
await
this
.
$api
.
projects
.
findAll
()
commit
(
'
setProjects
'
,
projects
)
},
async
deleteConfiguration
({
_commit
}:
{
_commit
:
Commit
},
id
:
number
)
{
async
deleteConfiguration
({
_commit
}:
{
_commit
:
Commit
},
id
:
string
)
{
await
this
.
$api
.
configurations
.
deleteById
(
id
)
},
saveConfiguration
({
_commit
}:
{
_commit
:
Commit
},
configuration
:
Configuration
):
Promise
<
Configuration
>
{
...
...
@@ -274,13 +274,13 @@ const actions = {
addConfigurationContact
({
_commit
}:
{
_commit
:
Commit
},
{
configurationId
,
contactId
}:
{
configurationId
:
number
,
contactId
:
number
}):
Promise
<
void
>
{
}:
{
configurationId
:
string
,
contactId
:
string
}):
Promise
<
void
>
{
return
this
.
$api
.
configurations
.
addContact
(
configurationId
,
contactId
)
},
removeConfigurationContact
({
_commit
}:
{
_commit
:
Commit
},
{
configurationId
,
contactId
}:
{
configurationId
:
number
,
contactId
:
number
}):
Promise
<
void
>
{
}:
{
configurationId
:
string
,
contactId
:
string
}):
Promise
<
void
>
{
return
this
.
$api
.
configurations
.
removeContact
(
configurationId
,
contactId
)
},
addDeviceMountAction
(
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment