Bug 921226 - Log during app install in App Manager. r=ochameau

This commit is contained in:
J. Ryan Stinnett 2013-10-02 16:23:43 -05:00
parent 17c9ab59f5
commit 3d174944c7

View File

@ -208,8 +208,10 @@ let UI = {
}, },
install: function(project) { install: function(project) {
this.connection.log("Installing the " + project.manifest.name + " app...");
let installPromise;
if (project.type == "packaged") { if (project.type == "packaged") {
return installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin) installPromise = installPackaged(this.connection.client, this.listTabsResponse.webappsActor, project.location, project.packagedAppOrigin)
.then(({ appId }) => { .then(({ appId }) => {
// If the packaged app specified a custom origin override, // If the packaged app specified a custom origin override,
// we need to update the local project origin // we need to update the local project origin
@ -225,8 +227,16 @@ let UI = {
origin: origin.spec, origin: origin.spec,
manifestURL: project.location manifestURL: project.location
}; };
return installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest); installPromise = installHosted(this.connection.client, this.listTabsResponse.webappsActor, appId, metadata, project.manifest);
} }
installPromise.then(() => {
this.connection.log("Install completed.");
}, () => {
this.connection.log("Install failed.");
});
return installPromise;
}, },
start: function(project) { start: function(project) {