1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 15:09:14 +00:00

[dir view] check quota for fileupload

This commit is contained in:
llj
2016-09-19 18:24:28 +08:00
parent 7ecf62d970
commit ada3365e15
4 changed files with 11 additions and 0 deletions

View File

@@ -20,6 +20,7 @@ define([
parse: function (data) {
this.repo_name = data.repo_name;
this.user_perm = data.user_perm;
this.no_quota = data.no_quota;
this.encrypted = data.encrypted;
this.is_repo_owner = data.is_repo_owner;
this.is_virtual = data.is_virtual;

View File

@@ -219,6 +219,9 @@ define([
if (!dir.user_perm || dir.user_perm != 'rw') {
return;
}
if (dir.no_quota) {
return;
}
var $popup = this.fileUploadView.$el;
@@ -434,6 +437,7 @@ define([
this.$dir_op_bar.html($.trim(this.dir_op_bar_template({
user_perm: dir.user_perm,
no_quota: dir.no_quota,
encrypted: dir.encrypted,
mode: this.view_mode,
path: dir.path,