fix old icon issue on addon manager toasts

pull/98/head
dperolio 2 years ago
parent 9d49a65097
commit 6fb7c2c1e6
No known key found for this signature in database
GPG Key ID: 4191689562D51409

@ -635,7 +635,7 @@ export default class AddonManager extends Events {
} catch (err) {
console.log(err);
}
console.log('okay');
/**
* Send a success toast.
*/
@ -643,7 +643,7 @@ export default class AddonManager extends Events {
id: 'addon-installed',
header: Messages.VIZALITY_ADDON_SUCCESSFULLY_INSTALLED.format({ type: toTitleCase(this.type) }),
content: <AddonInfoMessage addon={this.get(addonId) || { manifest: { name: addonId } }} message={Messages.VIZALITY_ADDON_SUCCESSFULLY_INSTALLED_DESC.format({ type: toTitleCase(this.type) })} />,
icon: toTitleCase(this.type),
icon: this.type,
buttons: [
{
text: 'View',
@ -666,7 +666,7 @@ export default class AddonManager extends Events {
id: ErrorTypes.ADDON_ALREADY_INSTALLED,
header: Messages.VIZALITY_ADDON_ALREADY_INSTALLED_DESC.format({ type: toTitleCase(this.type) }),
content: <AddonInfoMessage addon={addon} message={err.message} />,
icon: toTitleCase(this.type),
icon: this.type,
buttons: [
{
text: Messages.VIZALITY_UNINSTALL,
@ -693,7 +693,7 @@ export default class AddonManager extends Events {
id: ErrorTypes.ADDON_ALREADY_INSTALLING,
header: Messages.VIZALITY_ADDON_ALREADY_INSTALLING_DESC.format({ type: toTitleCase(this.type) }),
content: <AddonInfoMessage addon={addon} message={err.message} />,
icon: toTitleCase(this.type),
icon: this.type,
buttons: [
{
text: 'Cancel',
@ -716,7 +716,7 @@ export default class AddonManager extends Events {
id: ErrorTypes.ADDON_DIRECTORY_ALREADY_EXISTS,
header: Messages.ADDON_DIRECTORY_ALREADY_EXISTS_DESC.format({ type: toTitleCase(this.type) }),
content: <AddonInfoMessage addon={addon} message={err.message} />,
icon: toTitleCase(this.type)
icon: this.type
});
break;
}

Loading…
Cancel
Save