Files
edx-platform/cms/static/js/views/video_status.js
Zainab Amir 87a1c06d4b Display encode and transcript status (#23919)
* Have separate column for transcript and encode status
* Display error message sent from VEM

PROD-1432
2020-05-12 16:12:07 +05:00

38 lines
1.1 KiB
JavaScript

define(
[
'js/views/baseview', 'edx-ui-toolkit/js/utils/html-utils', 'text!templates/video-status.underscore'
],
function(BaseView, HtmlUtils, videoStatusTemplate) {
'use strict';
var VideoStatusView = BaseView.extend({
tagName: 'div',
initialize: function(options) {
this.status = options.status;
this.showError = options.showError;
this.errorDescription = options.errorDescription;
this.template = HtmlUtils.template(videoStatusTemplate);
},
/*
Renders status view.
*/
render: function() {
HtmlUtils.setHtml(
this.$el,
this.template({
status: this.status,
show_error: this.showError,
error_description: this.errorDescription
})
);
return this;
}
});
return VideoStatusView;
}
);