1
0
mirror of https://github.com/Sonarr/Sonarr.git synced 2024-12-16 11:37:58 +02:00
Sonarr/UI/AddSeries/RootFolders/Model.js

19 lines
393 B
JavaScript
Raw Normal View History

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