Merge pull request #3328 from FinnStutzenstein/mediafile-type-fix

Fixing mediafiles list view for medifiles without a type
This commit is contained in:
Emanuel Schütze 2017-07-27 09:54:30 +02:00 committed by GitHub
commit c0bd367342

View File

@ -85,7 +85,7 @@ angular.module('OpenSlidesApp.mediafiles.resources', [
return /\/(.+?)$/.exec(filename)[1];
}],
filetype: [function () {
return this.mediafile.type;
return this.mediafile.type || gettext('undefined');
}],
title_or_filename: ['title', 'mediafile', function (title) {
return title || this.filename;