website/description is optional for dev apps

This commit is contained in:
Girish Ramakrishnan
2019-11-12 17:09:18 -08:00
parent 602244b53f
commit 24ef877bfe
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -1571,8 +1571,14 @@ angular.module('Application').service('Client', ['$http', '$interval', '$timeout
// amend the post install confirm state
app.pendingPostInstallConfirmation = !!localStorage['confirmPostInstall_' + app.id];
var tmp = app.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
app.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
if (app.manifest.description) { // can be empty for dev apps
var tmp = app.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
app.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
} else {
app.upstreamVersion = '';
}
if (!app.manifest.title) app.manifest.title = 'Untitled';
return app;
};
+1 -1
View File
@@ -318,7 +318,7 @@
<li ng-class="{ 'disabled': !app.manifest.postInstallMessage }"><a href="" ng-click="postInstallMessage.show(false)">First Time Setup</a></li>
<li ng-class="{ 'disabled': !app.manifest.documentationUrl }"><a ng-href="{{ app.manifest.documentationUrl }}" target="_blank">Documentation</a></li>
<li role="separator" class="divider"></li>
<li><a ng-href="{{ app.manifest.website }}" target="_blank">Project Website</a></li>
<li ng-class="{ 'disabled': !app.manifest.website }"><a ng-href="{{ app.manifest.website }}" target="_blank">Project Website</a></li>
</ul>
</div>
</div>