Skip to content

Commit

Permalink
Merge branch 'main' of github.com:Postcatlab/postcat
Browse files Browse the repository at this point in the history
  • Loading branch information
scarqin committed Feb 9, 2023
2 parents 365600b + 9c39e66 commit d3e6f1a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ export class ExtensionComponent implements OnInit {
(value, oldValue) => {
const isSuggest = suggestList.some(n => oldValue && n.startsWith(oldValue));
if (value.trim() === '' && isSuggest) {
const node = this.treeNodes.find(n => n.key === 'all');
this.nzSelectedKeys = ['all'];
node && this.setGroup(node.key);
}
}
);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,15 @@ export class EnvironmentService extends BaseService<Environment> {
@ApiResponse()
create(params: any) {
if (params.name?.length > 32) {
throw new ResObj(null, { code: 131000001, message: 'Environment name length needs to be less than 32' });
throw new ResObj(null, { code: 131000001, message: $localize`Environment name length needs to be less than 32` });
}
return this.baseService.create(params);
}

@ApiResponse()
update(params: any) {
if (params.name?.length > 32) {
throw new ResObj(null, { code: 131000001, message: 'Environment name length needs to be less than 32' });
throw new ResObj(null, { code: 131000001, message: $localize`Environment name length needs to be less than 32` });
}
return this.baseService.update(params);
}
Expand Down

0 comments on commit d3e6f1a

Please sign in to comment.