Browse Source
Don't show undefined if metric is bytes in speedometer slider (#1951)
pull/1959/head
puzzledsab
4 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
2 deletions
-
interfaces/Glitter/templates/static/javascripts/glitter.main.js
|
|
@ -21,7 +21,7 @@ function ViewModel() { |
|
|
|
self.extraQueueColumns = ko.observableArray([]).extend({ persist: 'extraColumns' }); |
|
|
|
self.extraHistoryColumns = ko.observableArray([]).extend({ persist: 'extraHistoryColumns' }); |
|
|
|
self.showActiveConnections = ko.observable(false).extend({ persist: 'showActiveConnections' }); |
|
|
|
self.speedMetrics = { K: "KB/s", M: "MB/s", G: "GB/s" }; |
|
|
|
self.speedMetrics = { '': "B/s", K: "KB/s", M: "MB/s", G: "GB/s" }; |
|
|
|
|
|
|
|
// Set information varibales
|
|
|
|
self.title = ko.observable(); |
|
|
@ -1231,4 +1231,4 @@ function ViewModel() { |
|
|
|
|
|
|
|
// Activate tooltips
|
|
|
|
if(!isMobile) $('[data-tooltip="true"]').tooltip({ trigger: 'hover', container: 'body' }) |
|
|
|
} |
|
|
|
} |
|
|
|