Files
edx-platform/cms/static/js/models/active_video_upload.js
Greg Price 5f341423a3 Add progress bars for Studio video uploads
The CSS is also restructured a bit to style both the progress bar and
the status text based on the state of the upload using a single class
on the parent element.
2015-01-26 16:13:45 -05:00

32 lines
1.0 KiB
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,
progress: 0
}
},
statusStrings
);
return ActiveVideoUpload;
}
);