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
Merge requests
!225
Draft: Resolve "[Refactoring] Improve vuex store usage"
Code
Review changes
Check out branch
Download
Patches
Plain diff
Closed
Draft: Resolve "[Refactoring] Improve vuex store usage"
253-refactoring-improve-vuex-store-usage
into
master
Overview
1
Commits
230
Pipelines
0
Changes
1
Closed
Tobias Kuhnert
requested to merge
253-refactoring-improve-vuex-store-usage
into
master
2 years ago
Overview
1
Commits
230
Pipelines
0
Changes
1
Expand
Closes
#253 (closed)
0
0
Merge request reports
Viewing commit
6d611e01
Prev
Next
Show latest version
1 file
+
20
−
5
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
6d611e01
updated
· 6d611e01
Tobias Kuhnert
authored
2 years ago
pages/devices/_deviceId/contacts.vue
+
20
−
5
Options
@@ -29,32 +29,47 @@ implied. See the Licence for the specific language governing
permissions and limitations under the Licence.
-->
<
template
>
<NuxtChild/>
<div>
<ProgressIndicator
v-model=
"isLoading"
/>
<NuxtChild/>
/>
</div>
</
template
>
<
script
lang=
"ts"
>
import
{
Component
,
Vue
}
from
'
nuxt-property-decorator
'
import
{
mapActions
}
from
'
vuex
'
import
ProgressIndicator
from
'
@/components/ProgressIndicator.vue
'
@
Component
({
components
:
{
ProgressIndicator
},
methods
:
mapActions
(
'
devices
'
,[
'
loadDeviceContacts
'
])
})
export
default
class
DeviceContactsPage
extends
Vue
{
private
isLoading
=
false
created
(){
try
{
this
.
isLoading
=
true
this
.
loadDeviceContacts
(
this
.
deviceId
)
}
catch
(
e
)
{
this
.
$store
.
commit
(
'
snackbar/setError
'
,
'
Failed to fetch contacts
'
)
}
finally
{
this
.
isLoading
=
false
}
}
get
deviceId
():
string
{
return
this
.
$route
.
params
.
deviceId
}
head
()
{
return
{
titleTemplate
:
'
Contacts - %s
'
}
}
get
deviceId
():
string
{
return
this
.
$route
.
params
.
deviceId
}
}
</
script
>
Loading