From bd02e024323dfb069a68fbc61efb7d6ac417a8b5 Mon Sep 17 00:00:00 2001
From: rhenck <richard.henck@iqb.hu-berlin.de>
Date: Mon, 25 Oct 2021 12:07:41 +0200
Subject: [PATCH] Remove showRestRuns property for player elements

---
 projects/common/interfaces/UIElementInterfaces.ts  | 1 -
 projects/common/models/audio-element.ts            | 1 -
 projects/common/models/video-element.ts            | 1 -
 projects/common/util/unit-interface-initializer.ts | 1 -
 4 files changed, 4 deletions(-)

diff --git a/projects/common/interfaces/UIElementInterfaces.ts b/projects/common/interfaces/UIElementInterfaces.ts
index 99be1826d..5844b0e88 100644
--- a/projects/common/interfaces/UIElementInterfaces.ts
+++ b/projects/common/interfaces/UIElementInterfaces.ts
@@ -28,6 +28,5 @@ export interface PlayerElement {
   activeAfter: string; // '' (andere Audio - id; Audio ist deaktiviert, solange anderes nicht vollständig abgespielt)
   minRuns: number; // 1
   maxRuns: number | null; // null
-  showRestRuns: boolean; // true (wenn maxRuns)
   showRestTime: boolean; // true
 }
diff --git a/projects/common/models/audio-element.ts b/projects/common/models/audio-element.ts
index 15bece7ed..386de7319 100644
--- a/projects/common/models/audio-element.ts
+++ b/projects/common/models/audio-element.ts
@@ -21,7 +21,6 @@ export class AudioElement extends UIElement implements PlayerElement {
   activeAfter: string = '';
   minRuns: number = 1;
   maxRuns: number | null = null;
-  showRestRuns: boolean = true;
   showRestTime: boolean = true;
 
   constructor(serializedElement: UIElement, coordinates?: { x: number; y: number }) {
diff --git a/projects/common/models/video-element.ts b/projects/common/models/video-element.ts
index 4c967ad45..69e938780 100644
--- a/projects/common/models/video-element.ts
+++ b/projects/common/models/video-element.ts
@@ -21,7 +21,6 @@ export class VideoElement extends UIElement implements PlayerElement {
   activeAfter: string = '';
   minRuns: number = 1;
   maxRuns: number | null = null;
-  showRestRuns: boolean = true;
   showRestTime: boolean = true;
 
   constructor(serializedElement: UIElement, coordinates?: { x: number; y: number }) {
diff --git a/projects/common/util/unit-interface-initializer.ts b/projects/common/util/unit-interface-initializer.ts
index 49cf34776..bc8d51f8d 100644
--- a/projects/common/util/unit-interface-initializer.ts
+++ b/projects/common/util/unit-interface-initializer.ts
@@ -34,7 +34,6 @@ export function initPlayerElement(serializedElement: UIElement): PlayerElement {
     activeAfter: serializedElement.activeAfter as string || '',
     minRuns: serializedElement.minRuns as number || 1,
     maxRuns: serializedElement.maxRuns as number | null || null,
-    showRestRuns: serializedElement.showRestRuns as boolean || true,
     showRestTime: serializedElement.showRestTime as boolean || true
   };
 }
-- 
GitLab