From b4814f8f8ca374abd159cf167699fb15dd4e0983 Mon Sep 17 00:00:00 2001 From: OldHawk Date: Fri, 8 Dec 2017 15:53:26 +0800 Subject: [PATCH] feat(makers): admin can set maker upload access from maker detail page #20 --- .../controllers/about.client.controller.js | 13 +++++++++++ .../client/views/maker-view.client.view.html | 22 ++++++++++++++++++- modules/core/client/app/trans-string-en.js | 1 + modules/core/client/app/trans-string-zh.js | 1 + 4 files changed, 36 insertions(+), 1 deletion(-) diff --git a/modules/about/client/controllers/about.client.controller.js b/modules/about/client/controllers/about.client.controller.js index 46f646a8..795b6cd7 100644 --- a/modules/about/client/controllers/about.client.controller.js +++ b/modules/about/client/controllers/about.client.controller.js @@ -432,6 +432,19 @@ }); }; + /** + * setMakerUploadAccess + * @param acc + */ + vm.setMakerUploadAccess = function (acc) { + vm.maker.upload_access = acc; + vm.maker.$update(function (res) { + vm.maker = res; + NotifycationService.showSuccessNotify('UPLOADER.ACCESS_CHANGED_SUCCESSFULLY'); + }); + + }; + /** * ratingMaker * @param item diff --git a/modules/about/client/views/maker-view.client.view.html b/modules/about/client/views/maker-view.client.view.html index c21e9c17..87f46bfb 100644 --- a/modules/about/client/views/maker-view.client.view.html +++ b/modules/about/client/views/maker-view.client.view.html @@ -80,8 +80,28 @@ ng-if="vm.user.isOper || vm.isOwner(vm.maker)" ng-click="vm.beginEditMakerDesc(vm.maker)"> {{'ABOUT.BTN_EDIT_DESC' | translate}} +
+ + +
diff --git a/modules/core/client/app/trans-string-en.js b/modules/core/client/app/trans-string-en.js index 195ec59e..56f16a2f 100644 --- a/modules/core/client/app/trans-string-en.js +++ b/modules/core/client/app/trans-string-en.js @@ -339,6 +339,7 @@ ADMIN_BASIC_TYPE_SET: 'Sale Type', ADMIN_SALE_TYPE_SET: 'Sale Type Set', ADMIN_BASIC_RLEVEL_SET: 'Recommend Level', + ADMIN_UPLOAD_ACCESS: 'Upload Access', ADMIN_RLEVEL_SET: 'Recommend Level Set', ADMIN_COLLECTION_COMMAND: 'Collections Command', ADMIN_COLLECTION_CREATE: 'Create Collection', diff --git a/modules/core/client/app/trans-string-zh.js b/modules/core/client/app/trans-string-zh.js index b9b589ef..835e6db1 100644 --- a/modules/core/client/app/trans-string-zh.js +++ b/modules/core/client/app/trans-string-zh.js @@ -339,6 +339,7 @@ ADMIN_BASIC_TYPE_SET: '设置促销', ADMIN_SALE_TYPE_SET: '种子促销类型', ADMIN_BASIC_RLEVEL_SET: '推荐级别', + ADMIN_UPLOAD_ACCESS: '上传权限', ADMIN_RLEVEL_SET: '推荐级别设置', ADMIN_COLLECTION_COMMAND: '电影系列操作命令', ADMIN_COLLECTION_CREATE: '创建新系列',