Skip to content

Commit

Permalink
frontend nits
Browse files Browse the repository at this point in the history
  • Loading branch information
rubenfiszel committed Feb 16, 2023
1 parent 772bb60 commit 7120d6b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion frontend/src/lib/components/WhitelistIp.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
.filter((worker) => {
const date = new Date().getTime() - 300 * 60
const ping_at = new Date(worker.ping_at).getTime()
return ping_at > date
return worker.ip != 'unretrievable IP' && ping_at > date
})
.map((worker) => worker.ip)
)
Expand Down
7 changes: 6 additions & 1 deletion frontend/src/routes/(root)/(logged)/apps/add/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,12 @@
goto('?', { replaceState: true })
} else if (hubId) {
const hub = await AppService.getHubAppById({ id: Number(hubId) })
value = hub.app.value
value = {
hiddenInlineScripts: [],
unusedInlineScripts: [],
fullscreen: false,
...hub.app.value
}
summary = hub.app.summary
sendUserToast('App loaded from Hub')
goto('?', { replaceState: true })
Expand Down

0 comments on commit 7120d6b

Please sign in to comment.