File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
ui/src/views/application-overview/xpack-component Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 3131 :label =" $t('views.applicationOverview.appInfo.LimitDialog.authentication')"
3232 @click.prevent
3333 >
34- <el-switch size =" small" v-model =" form.authentication" ></el-switch >
34+ <el-switch size =" small" v-model =" form.authentication" @change = " firstGeneration " ></el-switch >
3535 </el-form-item >
3636 <el-radio-group
3737 v-if =" form.authentication"
3838 v-model =" form.authentication_value.type"
3939 class =" card__radio"
40- @change =" firstGeneration"
4140 >
4241 <el-card
4342 shadow =" never"
@@ -249,12 +248,11 @@ function refreshAuthentication() {
249248}
250249
251250function firstGeneration() {
252- if (
253- form .value .authentication &&
254- form .value .authentication_value .type === ' password' &&
255- ! form .value .authentication_value .password_value
256- ) {
257- form .value .authentication_value .password_value = generateAuthenticationValue ()
251+ if (form .value .authentication && ! form .value .authentication_value .password_value ) {
252+ form .value .authentication_value = {
253+ type: ' password' ,
254+ password_value: generateAuthenticationValue (),
255+ }
258256 }
259257}
260258
You can’t perform that action at this time.
0 commit comments