Show upstream version if available in the info dialog

This commit is contained in:
Johannes Zellner
2019-03-20 09:22:54 -07:00
parent 0345c52aba
commit 5563b6a786
2 changed files with 4 additions and 1 deletions

View File

@@ -979,6 +979,9 @@ angular.module('Application').service('Client', ['$http', '$interval', 'md5', 'N
if (error) return callback(error);
if (status !== 200) return callback(new ClientError(status, data));
var tmp = data.manifest.description.match(/\<upstream\>(.*)\<\/upstream\>/i);
data.upstreamVersion = (tmp && tmp[1]) ? tmp[1] : '';
callback(null, data);
});
};