UNCLASSIFIED
Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Open sidebar
Platform One
P
Party Bus
Launchboard
launchboard-fe
Commits
ebd07711
Commit
ebd07711
authored
Feb 25, 2021
by
hunter.congress
Browse files
team fixes
parents
e01588ac
deba0936
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
13 deletions
+9
-13
src/api/services/team.js
src/api/services/team.js
+1
-1
src/components/AddTeam.vue
src/components/AddTeam.vue
+0
-3
src/views/Team.vue
src/views/Team.vue
+7
-9
src/views/super-admin/Teams.vue
src/views/super-admin/Teams.vue
+1
-0
No files found.
src/api/services/team.js
View file @
ebd07711
...
@@ -20,7 +20,7 @@ export default {
...
@@ -20,7 +20,7 @@ export default {
},
},
async
addTeams
(
newTeams
)
{
async
addTeams
(
newTeams
)
{
for
(
let
i
=
0
;
i
<
newTeams
.
length
;
i
++
)
{
for
(
let
i
=
0
;
i
<
newTeams
.
length
;
i
++
)
{
await
this
.
addTeam
(
{
...
newTeams
[
i
]
,
poc
:
newTeams
[
i
].
leads
}
);
await
this
.
addTeam
(
newTeams
[
i
]);
}
}
},
},
...
...
src/components/AddTeam.vue
View file @
ebd07711
...
@@ -132,9 +132,6 @@ export default {
...
@@ -132,9 +132,6 @@ export default {
this
.
init
();
this
.
init
();
},
},
add
()
{
add
()
{
console
.
log
(
this
.
lead
);
this
.
leads
.
forEach
((
lead
)
=>
(
lead
.
TeamMember
.
isTeamLead
=
true
));
this
.
toAdd
.
members
=
this
.
leads
;
this
.
$emit
(
"
add
"
,
this
.
toAdd
);
this
.
$emit
(
"
add
"
,
this
.
toAdd
);
this
.
init
();
this
.
init
();
},
},
...
...
src/views/Team.vue
View file @
ebd07711
...
@@ -339,17 +339,15 @@ export default {
...
@@ -339,17 +339,15 @@ export default {
this
.
state
.
isAddingDuplicate
=
false
;
this
.
state
.
isAddingDuplicate
=
false
;
this
.
$refs
.
userSelect
&&
this
.
$refs
.
userSelect
.
clear
();
this
.
$refs
.
userSelect
&&
this
.
$refs
.
userSelect
.
clear
();
},
},
async
addMember
(
member
)
{
async
addMember
()
{
if
(
!
member
)
{
member
=
this
.
memberToAdd
;
}
this
.
state
.
isAddingBusy
=
true
;
this
.
state
.
isAddingBusy
=
true
;
member
=
member
.
map
(
function
(
member
)
{
const
members
=
this
.
memberToAdd
.
map
((
member
)
=>
({
return
{
userId
:
member
.
id
,
isTeamLead
:
false
};
userId
:
member
.
id
,
});
isTeamLead
:
false
,
}));
try
{
try
{
await
TeamService
.
addMembers
(
member
,
this
.
$route
.
params
.
teamId
);
await
TeamService
.
addMembers
(
member
s
,
this
.
$route
.
params
.
teamId
);
this
.
memberToAdd
=
member
;
this
.
memberToAdd
=
member
s
;
this
.
snackbars
.
add
=
true
;
this
.
snackbars
.
add
=
true
;
}
catch
(
e
)
{
}
catch
(
e
)
{
console
.
error
(
"
unable to add user
"
,
e
);
console
.
error
(
"
unable to add user
"
,
e
);
...
...
src/views/super-admin/Teams.vue
View file @
ebd07711
...
@@ -309,6 +309,7 @@ export default {
...
@@ -309,6 +309,7 @@ export default {
try
{
try
{
const
response
=
await
TeamService
.
getTeams
(
this
.
params
);
const
response
=
await
TeamService
.
getTeams
(
this
.
params
);
this
.
teams
=
response
.
teams
;
this
.
teams
=
response
.
teams
;
console
.
log
(
this
.
teams
);
this
.
total
=
response
.
meta
.
total
;
this
.
total
=
response
.
meta
.
total
;
}
catch
(
error
)
{
}
catch
(
error
)
{
console
.
error
(
"
!teams error!
"
,
error
);
console
.
error
(
"
!teams error!
"
,
error
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment