mirror of
https://github.com/goharbor/harbor.git
synced 2025-01-31 03:51:23 +01:00
updates for reseting-password and add projects of UI
This commit is contained in:
parent
49907a7992
commit
bdb55f8f91
@ -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>
|
||||
|
@ -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)
|
||||
|
@ -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': '项目已存在。'
|
||||
|
Loading…
Reference in New Issue
Block a user