|
|
|
@ -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;
|
|
|
|
|
}
|
|
|
|
|