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
Родитель 18a7b40ae9
Коммит 97c0516b1a
1 изменённых файлов: 12 добавлений и 2 удалений

Просмотреть файл

@ -208,8 +208,10 @@ let UI = {
},
install: function(project) {
this.connection.log("Installing the " + project.manifest.name + " app...");
let installPromise;
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 }) => {
// If the packaged app specified a custom origin override,
// we need to update the local project origin
@ -225,8 +227,16 @@ let UI = {
origin: origin.spec,
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) {