mirror of
https://github.com/scinote-eln/scinote-web.git
synced 2025-10-06 20:05:55 +08:00
Merge branch 'features/team-automations' into develop
This commit is contained in:
commit
9cbb1ba379
1 changed files with 6 additions and 1 deletions
|
@ -78,7 +78,12 @@ export default {
|
||||||
loadTeam() {
|
loadTeam() {
|
||||||
axios.get(this.teamUrl).then((response) => {
|
axios.get(this.teamUrl).then((response) => {
|
||||||
this.teamObject = response.data;
|
this.teamObject = response.data;
|
||||||
this.teamAutomationSettings = { ...this.emptySettings, ...this.teamObject.teamSettings?.team_automation_settings };
|
this.teamAutomationSettings = Object.fromEntries(
|
||||||
|
Object.keys(this.emptySettings).map(key => [
|
||||||
|
key,
|
||||||
|
{ ...this.emptySettings[key], ...this.teamObject.teamSettings?.team_automation_settings[key] }
|
||||||
|
])
|
||||||
|
);
|
||||||
});
|
});
|
||||||
},
|
},
|
||||||
setTeamAutomationsSettings() {
|
setTeamAutomationsSettings() {
|
||||||
|
|
Loading…
Add table
Reference in a new issue