@christianriedl/media 1.0.30 → 1.0.31

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@christianriedl/media",
3
- "version": "1.0.30",
3
+ "version": "1.0.31",
4
4
  "description": "RIC media interfaces",
5
5
 
6
6
  "main": "dist/index.js",
@@ -12,7 +12,6 @@
12
12
  const dvbService = getDvbService()!;
13
13
  const heightStyle = computed(() => { return { height: appState.bodyHeight.value + 'px', overflowY: 'auto' } });
14
14
  const isMobile = appState.isMobile;
15
- const deleteVisible = !!(appState.scopes & EScope.Admin);
16
15
  const router = useRouter();
17
16
 
18
17
  const items: IMediaItem[] = reactive([]);
@@ -22,6 +21,7 @@
22
21
 
23
22
  const backVisible = computed(() => selected.value.ItemType != EItemType.VideoRoot);
24
23
  const playVisible = computed(() => selected.value.ItemType == EItemType.VideoItem || selected.value.ItemType == EItemType.VideoBroadcast);
24
+ const deleteVisible = computed(() => !!(appState.scopes & EScope.Admin) && playVisible.value);
25
25
 
26
26
  onMounted(async () => {
27
27
  mediaService.log.info('RecordedTVs created');