fix(SFDC): properly enable SFDC

This commit is contained in:
Evan Morikawa 2016-12-09 15:22:14 -08:00
parent a702ce9e93
commit f1befc7f3e
3 changed files with 8 additions and 4 deletions

View file

@ -78,9 +78,12 @@ class PackageMigrationManager {
// If the old install was enabled, keep it that way
if (oldEnabledPackNames.includes(migration['old-name'])) { return }
// If we want to enable the package by default,
if (migration['enabled-by-default']) { return }
if (migration['enabled-by-default']) {
this.config.set('core.disabledPackages', disabledPackNames.filter(n => n !== migration['new-name']))
} else {
const newName = migration['new-name']
this.config.pushAtKeyPath('core.disabledPackages', newName);
}
})
this.config.set('core.packageMigrationVersion', this.version)

View file

@ -99,6 +99,7 @@ class PackageManager
_notifyPluginsChanged: (nameData, dir) =>
names = _.pluck(nameData, "displayName")
messages = _.compact(_.pluck(nameData, "message")).map((m) => decodeURIComponent(m))
msgText = ""
if messages.length > 0
msgText = "\n\n" + messages.join("\n\n")
if names.length >= 2

@ -1 +1 @@
Subproject commit de9d2e927d23a1261e297785a755c2b172fd43fb
Subproject commit 0e0f53dda987bad661a9b1ea0a3eb6ade39f0ee9