sonarr-repo-only/UI/AddSeries/RootFolders/Model.js

19 lines
393 B
JavaScript

'use strict';
define(
[
'backbone',
'sugar'
], function (Backbone) {
return Backbone.Model.extend({
mutators: {
freeSpaceString: function () {
return this.get('freeSpace').bytes(2) + ' Free';
}
},
defaults: {
freeSpace: 0
}
});
});