diff --git a/webviews/src/views/RokuAppOverlaysView/RokuAppOverlaysView.svelte b/webviews/src/views/RokuAppOverlaysView/RokuAppOverlaysView.svelte index adb40560..1a988e27 100644 --- a/webviews/src/views/RokuAppOverlaysView/RokuAppOverlaysView.svelte +++ b/webviews/src/views/RokuAppOverlaysView/RokuAppOverlaysView.svelte @@ -196,10 +196,10 @@ } }); - let deviceAvailable = false; + let odcAvailable = false; intermediary.observeEvent(ViewProviderEvent.onDeviceAvailabilityChange, async (message) => { - deviceAvailable = message.context.deviceAvailable; - if (deviceAvailable) { + odcAvailable = message.context.odcAvailable; + if (odcAvailable) { for (const [index, overlay] of overlays.entries()) { await conditionallyDeployOverlay(overlay, index); } @@ -223,7 +223,7 @@
- {#if deviceAvailable} + {#if odcAvailable} {#if overlays.length } {#each overlays as overlay, index} diff --git a/webviews/src/views/RokuFileSystemView/RokuFileSystemView.svelte b/webviews/src/views/RokuFileSystemView/RokuFileSystemView.svelte index 4c2d403f..b923f4be 100644 --- a/webviews/src/views/RokuFileSystemView/RokuFileSystemView.svelte +++ b/webviews/src/views/RokuFileSystemView/RokuFileSystemView.svelte @@ -222,10 +222,10 @@ } }); - let deviceAvailable = false; + let odcAvailable = false; intermediary.observeEvent(ViewProviderEvent.onDeviceAvailabilityChange, async (message) => { - deviceAvailable = message.context.deviceAvailable; - if (deviceAvailable) { + odcAvailable = message.context.odcAvailable; + if (odcAvailable) { await refresh(); } }); @@ -235,11 +235,6 @@ - -
- {#if deviceAvailable} + .hide { + display: none; + } + +
+ {#if odcAvailable} {#if loading} {:else} @@ -272,27 +278,31 @@ {/if} {/each}
- - - - {#if columnsToShow.name} - - {/if} - {#if columnsToShow.size} - - {/if} - {#if columnsToShow.dateModified} - - {/if} - {#if columnsToShow.dateCreated} - - {/if} - - - {#each currentPathContentsInfo as entry} - - {/each} - +
+
0}> + This folder is empty. +
+ + + {#if columnsToShow.name} + + {/if} + {#if columnsToShow.size} + + {/if} + {#if columnsToShow.dateModified} + + {/if} + {#if columnsToShow.dateCreated} + + {/if} + + + {#each currentPathContentsInfo as entry} + + {/each} + +
{/if} {:else}