mirror of
https://github.com/streamwall/streamwall.git
synced 2026-01-26 07:02:48 -05:00
Add reload button to control interface
This commit is contained in:
@@ -16,14 +16,11 @@ const viewStateMachine = Machine(
|
||||
},
|
||||
states: {
|
||||
empty: {
|
||||
entry: [
|
||||
assign({
|
||||
pos: {},
|
||||
info: {},
|
||||
url: null,
|
||||
}),
|
||||
'hideView',
|
||||
],
|
||||
entry: assign({
|
||||
pos: {},
|
||||
info: {},
|
||||
url: null,
|
||||
}),
|
||||
invoke: {
|
||||
src: 'clearView',
|
||||
onError: {
|
||||
@@ -45,6 +42,7 @@ const viewStateMachine = Machine(
|
||||
}),
|
||||
cond: 'urlUnchanged',
|
||||
},
|
||||
RELOAD: '.loading',
|
||||
},
|
||||
states: {
|
||||
loading: {
|
||||
@@ -80,6 +78,7 @@ const viewStateMachine = Machine(
|
||||
running: {
|
||||
initial: 'muted',
|
||||
entry: 'positionView',
|
||||
exit: 'hideView',
|
||||
on: {
|
||||
DISPLAY: {
|
||||
actions: [
|
||||
|
||||
Reference in New Issue
Block a user