Skip to content

Commit

Permalink
Allow extensions to override node provider icons for cloud credentials (
Browse files Browse the repository at this point in the history
  • Loading branch information
blackwood821 authored Aug 28, 2024
1 parent 27f34bc commit b932ce8
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions shell/edit/cloudcredential.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,13 +152,17 @@ export default {
}
for ( const id of types ) {
let bannerImage, bannerAbbrv;
let bannerAbbrv;
try {
bannerImage = require(`~shell/assets/images/providers/${ id }.svg`);
} catch (e) {
bannerImage = null;
bannerAbbrv = this.initialDisplayFor(id);
let bannerImage = this.$store.app.$plugin.getDynamic('image', `providers/${ id }.svg`);
if (!bannerImage) {
try {
bannerImage = require(`~shell/assets/images/providers/${ id }.svg`);
} catch (e) {
bannerImage = null;
bannerAbbrv = this.initialDisplayFor(id);
}
}
out.push({
Expand Down

0 comments on commit b932ce8

Please sign in to comment.