Files
edx-platform/cms/static/js/models/active_video_upload.js
Greg Price 61cb51596d Add front end for Studio video upload feature
Co-authored-by: Chris <crodriguez@edx.org>
Co-authored-by: Mark Hoeber <hoeber@edx.org>
2014-12-15 13:09:59 -05:00

31 lines
1011 B
JavaScript

define(
["backbone", "gettext"],
function(Backbone, gettext) {
"use strict";
var statusStrings = {
// Translators: This is the status of a video upload that is queued
// waiting for other uploads to complete
STATUS_QUEUED: gettext("Queued"),
// Translators: This is the status of an active video upload
STATUS_UPLOADING: gettext("Uploading"),
// Translators: This is the status of a video upload that has
// completed successfully
STATUS_COMPLETED: gettext("Upload completed"),
// Translators: This is the status of a video upload that has failed
STATUS_FAILED: gettext("Upload failed")
};
var ActiveVideoUpload = Backbone.Model.extend(
{
defaults: {
status: statusStrings.STATUS_QUEUED
}
},
statusStrings
);
return ActiveVideoUpload;
}
);