[ci skip] Render separator only when both values are present

This commit is contained in:
Filipa Lacerda 2017-09-28 12:21:25 +01:00
parent 33346d4845
commit 9772901587
No known key found for this signature in database
GPG Key ID: 9CA3FDE4D1E2F1C8
1 changed files with 4 additions and 2 deletions

View File

@ -38,7 +38,7 @@
]),
layers(item) {
return n__('%d layer', '%d layers', item.layers);
return item.layers ? n__('%d layer', '%d layers', item.layers) : '';
},
handleDeleteRegistry(registry) {
@ -98,7 +98,9 @@
</td>
<td>
{{item.size}}
&middot;
<template v-if="item.size && item.layers">
&middot;
</template>
{{layers(item)}}
</td>