fixed bugs and added download/upload speed titles
This commit is contained in:
parent
34b6d97be6
commit
38326d7e93
|
@ -13,7 +13,7 @@ angular.module('webui.services.rpc.helpers', [
|
||||||
},
|
},
|
||||||
addUris: function(uris, settings, cb) {
|
addUris: function(uris, settings, cb) {
|
||||||
_.each(uris, function(uri) {
|
_.each(uris, function(uri) {
|
||||||
uri_parsed = [];
|
var uri_parsed = [];
|
||||||
// parse options passed in the URIs. E.g. http://ex1.com/f1.jpg --out=image.jpg --check-integrity
|
// parse options passed in the URIs. E.g. http://ex1.com/f1.jpg --out=image.jpg --check-integrity
|
||||||
var uriSettings = _.cloneDeep(settings);
|
var uriSettings = _.cloneDeep(settings);
|
||||||
_.each(uri, function(uri_element) {
|
_.each(uri, function(uri_element) {
|
||||||
|
|
|
@ -124,6 +124,8 @@ angular.module('webui.services.utils', ['webui.services.configuration'])
|
||||||
return $titlePattern
|
return $titlePattern
|
||||||
.replace('{active}', stats.numActive || '⌛')
|
.replace('{active}', stats.numActive || '⌛')
|
||||||
.replace('{waiting}', stats.numWaiting || '⌛')
|
.replace('{waiting}', stats.numWaiting || '⌛')
|
||||||
|
.replace('{download_speed}', utils.fmtspeed(stats.downloadSpeed) || '⌛')
|
||||||
|
.replace('{upload_speed}', utils.fmtspeed(stats.uploadSpeed) || '⌛')
|
||||||
.replace('{stopped}', stats.numStopped || '⌛')
|
.replace('{stopped}', stats.numStopped || '⌛')
|
||||||
.replace('{name}', $name);
|
.replace('{name}', $name);
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue
Block a user