mirror of
https://github.com/portainer/portainer.git
synced 2025-07-22 14:59:41 +02:00
refactor(app): convert tag-selector to react [EE-2983] (#6783)
This commit is contained in:
parent
75d854e6ad
commit
d52417c14f
29 changed files with 103 additions and 288 deletions
|
@ -1,9 +1,8 @@
|
|||
export class CreateEdgeGroupController {
|
||||
/* @ngInject */
|
||||
constructor(EdgeGroupService, GroupService, TagService, Notifications, $state, $async) {
|
||||
constructor(EdgeGroupService, GroupService, Notifications, $state, $async) {
|
||||
this.EdgeGroupService = EdgeGroupService;
|
||||
this.GroupService = GroupService;
|
||||
this.TagService = TagService;
|
||||
this.Notifications = Notifications;
|
||||
this.$state = $state;
|
||||
this.$async = $async;
|
||||
|
@ -26,8 +25,8 @@ export class CreateEdgeGroupController {
|
|||
}
|
||||
|
||||
async $onInit() {
|
||||
const [tags, endpointGroups] = await Promise.all([this.TagService.tags(), this.GroupService.groups()]);
|
||||
this.tags = tags;
|
||||
const endpointGroups = await this.GroupService.groups();
|
||||
|
||||
this.endpointGroups = endpointGroups;
|
||||
this.state.loaded = true;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue