update messages for repositories and watching result of repo count.

This commit is contained in:
kunw 2016-05-24 18:37:25 +08:00
parent 6216799942
commit bab38f2514
3 changed files with 8 additions and 2 deletions

View File

@ -27,6 +27,12 @@
vm.tagCount = {};
vm.retrieve();
$scope.$watch('vm.repositories', function(current) {
if(current) {
vm.repositories = current || [];
}
});
$scope.$on('repoName', function(e, val) {
vm.repoName = val;
});

View File

@ -122,5 +122,5 @@ var locale_messages = {
'to_harbor': ' to Harbor!',
'continue' : 'Continue',
'no_projects_add_new_project': 'No projects, add new project now.',
'no_repositories': 'No repositories, use "push command" to upload new images.'
'no_repositories': 'No repositories found, please use "docker push" to upload images.'
};

View File

@ -120,5 +120,5 @@ var locale_messages = {
'to_harbor': ' 使用Harbor!',
'continue' : '继续',
'no_projects_add_new_project': '当前没有项目,请新增项目。',
'no_repositories': '当前没有镜像仓库,使用"push命令"上传镜像。'
'no_repositories': '未发现镜像,请用"docker push"命令上传镜像。'
};