updates for reseting-password and add projects of UI

This commit is contained in:
kunw 2016-05-16 11:41:54 +08:00
parent 49907a7992
commit bdb55f8f91
3 changed files with 6 additions and 2 deletions

View File

@ -6,7 +6,7 @@
<input type="text" class="form-control" placeholder="// 'project_name' | tr //" ng-model="p.projectName" name="uProjectName" ng-change="vm.reset()" required>
<div class="error-message">
<div ng-messages="form.$dirty && form.uProjectName.$error" ng-if="form.uProjectName.$touched">
<span ng-message="required">Project name is required.</span>
<span ng-message="required">// 'project_name_is_required' | tr //</span>
</div>
<span ng-show="vm.hasError">// vm.errorMessage | tr //</span>
</div>

View File

@ -34,7 +34,7 @@
}
function resetPassword(user) {
if(user && angular.isDefined(user.resetUuid) && angular.isDefined(user.password)) {
if(user && angular.isDefined(user.password)) {
console.log('rececived password:' + user.password + ', reset_uuid:' + vm.resetUuid);
ResetPasswordService(vm.resetUuid, user.password)
.success(resetPasswordSuccess)

View File

@ -399,6 +399,10 @@ var global_messages = {
'en-US': 'Username/Email',
'zh-CN': '用户名/邮箱'
},
'project_name_is_required': {
'en-US': 'Project name is required',
'zh-CN': '项目名称为必填项。'
},
'project_already_exist': {
'en-US': 'Project already exist',
'zh-CN': '项目已存在。'