ui: render medium-wearout as percentage

This commit is contained in:
Dietmar Maurer 2021-03-02 13:08:01 +01:00
parent 6f3714b9aa
commit ac4a1fb35c

View File

@ -245,6 +245,12 @@ Ext.define('PBS.TapeManagement.DriveStatusGrid', {
},
'medium-wearout': {
header: gettext('Tape Wearout'),
renderer: function(value) {
if (value !== undefined) {
return (value*100).toFixed(2) + "%";
}
return value;
},
},
},
});