Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
VLC-Android
Manage
Activity
Members
Labels
Plan
Issues
529
Issue boards
Milestones
Wiki
Code
Merge requests
15
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
VideoLAN
VLC-Android
Commits
b1268dc3
Commit
b1268dc3
authored
1 year ago
by
Nicolas Pomepuy
Browse files
Options
Downloads
Patches
Plain Diff
Fix pinia subscription in remote access
parent
ea42816a
No related branches found
Branches containing commit
No related tags found
Tags containing commit
1 merge request
!1833
Implement the video grouping in the remote access
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
buildsystem/network-sharing-server/src/pages/BrowseList.vue
+2
-2
2 additions, 2 deletions
buildsystem/network-sharing-server/src/pages/BrowseList.vue
buildsystem/network-sharing-server/src/pages/VideoList.vue
+2
-2
2 additions, 2 deletions
buildsystem/network-sharing-server/src/pages/VideoList.vue
with
4 additions
and
4 deletions
buildsystem/network-sharing-server/src/pages/BrowseList.vue
+
2
−
2
View file @
b1268dc3
...
...
@@ -226,8 +226,8 @@ export default {
},
mounted
:
function
()
{
this
.
appStore
.
$subscribe
((
mutation
,
state
)
=>
{
console
.
log
(
`Something changed in the app store:
${
mutation
}
->
${
state
}
`
)
if
(
mutation
.
events
.
key
==
"
needRefresh
"
&&
mutation
.
events
.
newValue
===
true
)
{
if
(
state
.
needRefresh
)
{
this
.
$log
.
log
(
`A stream has changed!! Reloading with:
${
JSON
.
stringify
(
state
)}
`
)
this
.
fetchStreams
();
this
.
appStore
.
needRefresh
=
false
}
...
...
This diff is collapsed.
Click to expand it.
buildsystem/network-sharing-server/src/pages/VideoList.vue
+
2
−
2
View file @
b1268dc3
...
...
@@ -83,8 +83,8 @@ export default {
},
mounted
:
function
()
{
this
.
appStore
.
$subscribe
((
mutation
,
state
)
=>
{
this
.
$log
.
log
(
`Something changed in the app store:
${
mutation
.
events
.
key
}
->
${
state
}
`
)
if
(
mu
tat
ion
.
events
.
key
==
"
needRefresh
"
&&
mutation
.
events
.
newValue
===
true
)
{
this
.
$log
.
log
(
`Something changed in the app store:
${
JSON
.
stringify
(
state
)
}
`
)
if
(
s
tat
e
.
needRefresh
)
{
this
.
fetchVideos
();
this
.
appStore
.
needRefresh
=
false
}
...
...
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