feat(makers): admin can set maker upload access from maker detail page

#20
This commit is contained in:
OldHawk
2017-12-08 15:53:26 +08:00
parent 43abe80c9f
commit b4814f8f8c
4 changed files with 36 additions and 1 deletions

View File

@@ -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