Skip to content

Commit

Permalink
Try to fix the problem of rendered platform images that don't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
jaywink committed Nov 29, 2019
1 parent cec7e10 commit 4ef8fab
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -76,3 +76,5 @@ dist/
playbook.yml

/utils/maxmind/GeoLite2-Country.mmdb

test/unit/coverage
2 changes: 1 addition & 1 deletion src/components/NodesTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<tr>
<td>
<img
v-if="node.platform.name !== 'unknown'"
v-if="node.platform.name !== 'unknown' && node.platform.icon !== 'unknown'"
:alt="node.platform.name"
:title="node.platform.name"
:src="imageSource"
Expand Down
2 changes: 1 addition & 1 deletion src/components/PlatformTableRow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
<tr>
<td style="width: 20px;">
<img
v-if="platform.name !== 'unknown'"
v-if="platform.name !== 'unknown' && platform.icon !== 'unknown'"
:alt="platform.name"
:title="platform.name"
:src="imageSource"
Expand Down
2 changes: 0 additions & 2 deletions thefederation/models/platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@ def __str__(self):
def save(self, *args, **kwargs):
if not self.display_name:
self.display_name = self.name
if self.icon == 'unknown':
self.icon = self.name
super().save(*args, **kwargs)

def clean_version(self, version):
Expand Down

0 comments on commit 4ef8fab

Please sign in to comment.