svg preview (#6045)
Этот коммит содержится в:
коммит произвёл
Corey Hulen
родитель
9b9788cf11
Коммит
0aa84799fd
@@ -426,6 +426,10 @@ export function getFileType(extin) {
|
||||
return 'patch';
|
||||
}
|
||||
|
||||
if (Constants.SVG_TYPES.indexOf(ext) > -1) {
|
||||
return 'svg';
|
||||
}
|
||||
|
||||
return 'other';
|
||||
}
|
||||
|
||||
@@ -449,7 +453,7 @@ export function getIconClassName(fileTypeIn) {
|
||||
return Constants.ICON_NAME_FROM_TYPE[fileType];
|
||||
}
|
||||
|
||||
return 'glyphicon-file';
|
||||
return 'generic';
|
||||
}
|
||||
|
||||
export function splitFileLocation(fileLocation) {
|
||||
|
||||
Ссылка в новой задаче
Block a user