-
+
+
+
+
+ {{ assetSolutionName }}
-
diff --git a/projects/questionset-editor-library/src/lib/components/question/question.component.scss b/projects/questionset-editor-library/src/lib/components/question/question.component.scss
index 8198af06d..0fe07ea01 100644
--- a/projects/questionset-editor-library/src/lib/components/question/question.component.scss
+++ b/projects/questionset-editor-library/src/lib/components/question/question.component.scss
@@ -27,6 +27,7 @@ sui-select {
right: 0;
cursor: pointer;
z-index: 1;
+ background-repeat: no-repeat !important;
}
.overlay-image .play.icon {
position: absolute;
@@ -324,3 +325,26 @@ sui-select {
display: flex;
gap: 10px;
}
+
+.selected-audio-container {
+ height: 100%;
+ border: 1px solid #9E9E9E;
+ border-radius: 6px;
+ float: left;
+ width: 20%;
+ margin-right: 15px;
+}
+
+.audio-container {
+ height: 100px;
+ float: left;
+ width: 200px;
+ padding: 10px;
+ overflow: hidden;
+ white-space: nowrap;
+ text-overflow: ellipsis;
+}
+
+.cursor-pointer-txt {
+ cursor: pointer;
+}
\ No newline at end of file
diff --git a/projects/questionset-editor-library/src/lib/components/question/question.component.ts b/projects/questionset-editor-library/src/lib/components/question/question.component.ts
index c62419936..4ead4024d 100644
--- a/projects/questionset-editor-library/src/lib/components/question/question.component.ts
+++ b/projects/questionset-editor-library/src/lib/components/question/question.component.ts
@@ -709,14 +709,16 @@ export class QuestionComponent implements OnInit, AfterViewInit, OnDestroy {
this.assetSolutionData = event;
this.assetSolutionName = event.name;
this.editorState.solutions = event.identifier;
- this.assetThumbnail = event.thumbnail;
+ this.assetThumbnail = event?.thumbnail;
const assetMedia: any = {};
assetMedia.id = event.identifier;
assetMedia.src = event.src;
assetMedia.type = this.assetType;
assetMedia.assetId = event.identifier;
assetMedia.name = event.name;
- assetMedia.thumbnail = this.assetThumbnail;
+ if (event?.thumbnail) {
+ assetMedia.thumbnail = this.assetThumbnail;
+ }
assetMedia.baseUrl = _.get(this.editorService.editorConfig, 'context.host') || document.location.origin;
if (assetMedia.thumbnail) {
const thumbnailMedia: any = {};
diff --git a/projects/questionset-editor-library/src/lib/questionset-editor-library.module.ts b/projects/questionset-editor-library/src/lib/questionset-editor-library.module.ts
index 83fc8a46b..a989f0cf4 100644
--- a/projects/questionset-editor-library/src/lib/questionset-editor-library.module.ts
+++ b/projects/questionset-editor-library/src/lib/questionset-editor-library.module.ts
@@ -22,7 +22,6 @@ import { QuestionComponent } from './components/question/question.component';
import { QumlLibraryModule } from '@project-sunbird/sunbird-quml-player';
import { CarouselModule } from 'ngx-bootstrap/carousel';
import { TelemetryInteractDirective } from './directives/telemetry-interact/telemetry-interact.directive';
-import { AssetBrowserComponent } from './components/asset-browser/asset-browser.component';
import { CollectionIconComponent } from './components/collection-icon/collection-icon.component';
import { QumlPlayerComponent } from './components/quml-player/quml-player.component';
import { QuestionOptionSubMenuComponent } from './components/question-option-sub-menu/question-option-sub-menu.component';
@@ -40,6 +39,7 @@ import {TermAndConditionComponent} from './components/term-and-condition/term-an
import { QualityParamsModalComponent } from './components/quality-params-modal/quality-params-modal.component';
import { AssetsBrowserComponent } from './components/assets-browser/assets-browser.component';
+import { AssetSegmentComponent } from './components/asset-segment/asset-segment.component';
@NgModule({
declarations: [
QuestionsetEditorLibraryComponent,
@@ -56,7 +56,6 @@ import { AssetsBrowserComponent } from './components/assets-browser/assets-brows
CkeditorToolComponent,
TemplateComponent,
TelemetryInteractDirective,
- AssetBrowserComponent,
CollectionIconComponent,
QumlPlayerComponent,
PublishChecklistComponent,
@@ -71,6 +70,7 @@ import { AssetsBrowserComponent } from './components/assets-browser/assets-brows
TermAndConditionComponent,
QualityParamsModalComponent,
AssetsBrowserComponent,
+ AssetSegmentComponent,
],
imports: [CommonModule, FormsModule, ReactiveFormsModule.withConfig({callSetDisabledState: 'whenDisabledForLegacyCode'}), RouterModule.forChild([]), SuiModule,
CommonFormElementsModule, InfiniteScrollModule, HttpClientModule, ResourceLibraryModule, A11yModule, QumlLibraryModule, CarouselModule,],