Fixing mediafiles list view for medifiles without a type
This commit is contained in:
parent
5644e99b43
commit
6c5cc799ca
@ -85,7 +85,7 @@ angular.module('OpenSlidesApp.mediafiles.resources', [
|
|||||||
return /\/(.+?)$/.exec(filename)[1];
|
return /\/(.+?)$/.exec(filename)[1];
|
||||||
}],
|
}],
|
||||||
filetype: [function () {
|
filetype: [function () {
|
||||||
return this.mediafile.type;
|
return this.mediafile.type || gettext('undefined');
|
||||||
}],
|
}],
|
||||||
title_or_filename: ['title', 'mediafile', function (title) {
|
title_or_filename: ['title', 'mediafile', function (title) {
|
||||||
return title || this.filename;
|
return title || this.filename;
|
||||||
|
Loading…
Reference in New Issue
Block a user