Skip to content

Commit

Permalink
Add Iconset viewer
Browse files Browse the repository at this point in the history
  • Loading branch information
ingalls committed Sep 24, 2024
1 parent 6ab5faf commit eff1f5e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions api/web/src/components/CloudTAK/util/Icons.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,9 +152,7 @@ export default {
},
mounted: async function() {
// If the icon has a `:` it is part of an iconset, otherwise it is derived from the type
if (this.iconset.includes(':')) {
await this.fetchList();
}
await this.fetchList();
},
methods: {
iconurl: function(icon) {
Expand All @@ -168,7 +166,7 @@ export default {
url.searchParams.append('filter', this.paging.filter);
url.searchParams.append('limit', this.paging.limit);
url.searchParams.append('page', this.paging.page);
if (this.iconset) url.searchParams.append('iconset', this.iconset);
if (this.iconset && this.iconset.includes(':')) url.searchParams.append('iconset', this.iconset);
this.list = await std(url);
this.loading = false;
}
Expand Down

0 comments on commit eff1f5e

Please sign in to comment.