mirror of
https://github.com/haiwen/seahub.git
synced 2025-09-22 11:57:34 +00:00
[deleted libs] list deleted libraries, and enable user to restore a library
This commit is contained in:
18
static/scripts/app/collections/deleted-repos.js
Normal file
18
static/scripts/app/collections/deleted-repos.js
Normal file
@@ -0,0 +1,18 @@
|
||||
define([
|
||||
'underscore',
|
||||
'backbone',
|
||||
'common',
|
||||
'app/models/deleted-repo'
|
||||
], function(_, Backbone, Common, DeletedRepo) {
|
||||
'use strict';
|
||||
|
||||
var collection = Backbone.Collection.extend({
|
||||
model: DeletedRepo,
|
||||
|
||||
url: function () {
|
||||
return Common.getUrl({name: 'deleted_repos'});
|
||||
}
|
||||
});
|
||||
|
||||
return collection;
|
||||
});
|
Reference in New Issue
Block a user