1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2025-07-13 01:20:22 +02:00
Files
Sonarr/UI/AddSeries/RootFolders/Model.js

19 lines
393 B
JavaScript
Raw Normal View History

2013-06-21 23:24:24 -07:00
'use strict';
2013-06-20 22:19:41 -07:00
define(
[
'backbone',
'sugar'
], function (Backbone) {
return Backbone.Model.extend({
mutators: {
freeSpaceString: function () {
2013-06-21 23:24:24 -07:00
return this.get('freeSpace').bytes(2) + ' Free';
2013-06-20 22:19:41 -07:00
}
},
2013-06-20 22:19:41 -07:00
defaults: {
freeSpace: 0
}
});
});