Temporaly removes tooltips from table, as it is causing overflow issues.

This commit is contained in:
mateuswetah 2018-05-22 20:44:51 -03:00
parent 3d6b9db111
commit ccc320f563
2 changed files with 28 additions and 10 deletions

View File

@ -93,11 +93,16 @@
'table-creation': column.field == 'row_creation'}" 'table-creation': column.field == 'row_creation'}"
@click="goToItemPage(item)"> @click="goToItemPage(item)">
<data-and-tooltip <!-- <data-and-tooltip
v-if="column.field !== 'row_thumbnail' && v-if="column.field !== 'row_thumbnail' &&
column.field !== 'row_actions' && column.field !== 'row_actions' &&
column.field !== 'row_creation'" column.field !== 'row_creation'"
:data="renderMetadata( item.metadata[column.slug] )"/> :data="renderMetadata( item.metadata[column.slug] )"/> -->
<p
v-if="column.field !== 'row_thumbnail' &&
column.field !== 'row_actions' &&
column.field !== 'row_creation'"
v-html="renderMetadata( item.metadata[column.slug] )"/>
<span v-if="column.field == 'row_thumbnail'"> <span v-if="column.field == 'row_thumbnail'">
<img <img

View File

@ -60,14 +60,27 @@ export default {
}, },
methods: { methods: {
getIconForMimeType(mimeType) { getIconForMimeType(mimeType) {
switch (mimeType) {
case 'application/pdf': let type = mimeType.split('/');
return 'file-pdf';
case 'text': if (type[0] == 'application' && type[1] != undefined){
return 'format-align-left'; switch (type[1]) {
default: case 'pdf':
return ''; return 'file-pdf';
default:
return '';
}
} else {
switch (type[0]) {
case 'video':
return 'video';
case 'audio':
return 'volume-high';
case 'text':
return 'format-align-left';
default:
return '';
}
} }
} }
} }