mirror of
https://github.com/haiwen/seahub.git
synced 2025-10-20 18:32:41 +00:00
multi storage backend
1. add multi storage backend support 2. add 'storage_ids' user role
This commit is contained in:
@@ -16,12 +16,14 @@ define([
|
||||
encrypted: false,
|
||||
owner: "-",
|
||||
owner_nickname: "-",
|
||||
storage_name: "-",
|
||||
permission: "rw"
|
||||
},
|
||||
|
||||
parse: function(response) {
|
||||
var attrs = _.clone(response);
|
||||
attrs.id = response.id || response.repo_id;
|
||||
attrs.storage_name = response.storage_name;
|
||||
attrs.name = response.name || response.repo_name;
|
||||
attrs.desc = response.desc || response.repo_desc;
|
||||
attrs.size_formatted = response.size_formatted || response.repo_size_formatted;
|
||||
|
@@ -13,6 +13,7 @@ define([
|
||||
return {
|
||||
showSharePerm: true,
|
||||
enable_encrypted_library: app.pageOptions.enable_encrypted_library,
|
||||
storages: app.pageOptions.storages,
|
||||
library_templates: app.pageOptions.library_templates
|
||||
};
|
||||
},
|
||||
|
@@ -49,7 +49,8 @@ define([
|
||||
passwd1: $('input[name=passwd]', this.$el).val(),
|
||||
passwd2: $('input[name=passwd_again]', this.$el).val(),
|
||||
passwd: $('input[name=passwd]', this.$el).val(),
|
||||
library_template: $('[name="library_template"]', this.$el).val()
|
||||
library_template: $('[name="library_template"]', this.$el).val(),
|
||||
storage_id: $('[name="storage"]', this.$el).val()
|
||||
};
|
||||
},
|
||||
|
||||
|
@@ -13,6 +13,7 @@ define([
|
||||
return {
|
||||
showSharePerm: true,
|
||||
enable_encrypted_library: app.pageOptions.enable_encrypted_library,
|
||||
storages: app.pageOptions.storages,
|
||||
library_templates: app.pageOptions.library_templates
|
||||
};
|
||||
},
|
||||
|
Reference in New Issue
Block a user