Skip to content

Commit

Permalink
Save new group instance region independently
Browse files Browse the repository at this point in the history
  • Loading branch information
Natsumi-sama committed Feb 14, 2024
1 parent 8eca431 commit 170b35b
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
9 changes: 9 additions & 0 deletions html/src/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -19250,6 +19250,7 @@ speechSynthesis.getVoices();
userId: '',
accessType: '',
region: '',
groupRegion: '',
groupId: '',
groupAccessType: '',
strict: false,
Expand Down Expand Up @@ -19429,6 +19430,10 @@ speechSynthesis.getVoices();
'instanceRegion',
this.newInstanceDialog.region
);
await configRepository.setString(
'groupInstanceRegion',
this.newInstanceDialog.groupRegion
);
await configRepository.setString(
'instanceDialogInstanceName',
this.newInstanceDialog.instanceName
Expand Down Expand Up @@ -19475,6 +19480,10 @@ speechSynthesis.getVoices();
'instanceRegion',
'US West'
);
D.groupRegion = await configRepository.getString(
'groupInstanceRegion',
'US West'
);
D.instanceName = await configRepository.getString(
'instanceDialogInstanceName',
''
Expand Down
3 changes: 2 additions & 1 deletion html/src/index.pug
Original file line number Diff line number Diff line change
Expand Up @@ -1106,6 +1106,7 @@ html
el-tooltip(placement="top")
template(#content)
span {{ $t('dialog.group.info.role') }} {{ role.name }}
br
span {{ $t('dialog.group.info.role_description') }} {{ role.description }}
br
span(v-if="role.updatedAt") {{ $t('dialog.group.info.role_updated_at') }} {{ role.updatedAt | formatDate('long') }}
Expand Down Expand Up @@ -1451,7 +1452,7 @@ html
el-radio-button(label="plus") {{ $t('dialog.new_instance.group_access_type_plus') }}
el-radio-button(label="public") {{ $t('dialog.new_instance.group_access_type_public') }}
el-form-item(:label="$t('dialog.new_instance.region')")
el-radio-group(v-model="newInstanceDialog.region" size="mini" @change="buildInstance")
el-radio-group(v-model="newInstanceDialog.groupRegion" size="mini" @change="buildInstance")
el-radio-button(label="US West") {{ $t('dialog.new_instance.region_usw') }}
el-radio-button(label="US East") {{ $t('dialog.new_instance.region_use') }}
el-radio-button(label="Europe") {{ $t('dialog.new_instance.region_eu') }}
Expand Down

0 comments on commit 170b35b

Please sign in to comment.