Skip to content

Commit

Permalink
password required field changes
Browse files Browse the repository at this point in the history
Signed-off-by: mehab <[email protected]>
  • Loading branch information
mehab committed Jul 6, 2023
1 parent f82bc0c commit fa607ce
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/views/administration/repositories/Repositories.vue
Original file line number Diff line number Diff line change
Expand Up @@ -152,6 +152,7 @@ import RepositoryCreateRepositoryModal from "./RepositoryCreateRepositoryModal";
id="username" :label="$t('admin.username')"
input-group-size="mb-3"
v-model="username"
rules="required"
v-show="authenticationRequired"
v-debounce:750ms="updateRepository" :debounce-events="'keyup'"/>
</div>
Expand All @@ -162,6 +163,7 @@ import RepositoryCreateRepositoryModal from "./RepositoryCreateRepositoryModal";
input-group-size="mb-3"
type="password"
v-model="password"
rules="required"
v-show="authenticationRequired"
v-debounce:750ms="updateRepository" :debounce-events="'keyup'"/>
</div>
Expand All @@ -188,7 +190,7 @@ import RepositoryCreateRepositoryModal from "./RepositoryCreateRepositoryModal";
internal: row.internal,
authenticationRequired: row.authenticationRequired,
username: row.username,
password: row.password || null,
password: row.password || "HiddenDecryptedPropertyPlaceholder",
enabled: row.enabled,
uuid: row.uuid,
labelIcon: {
Expand All @@ -205,6 +207,7 @@ import RepositoryCreateRepositoryModal from "./RepositoryCreateRepositoryModal";
this.updateRepository();
},
authenticationRequired(){
this.updateRepository();
}
Expand All @@ -227,7 +230,7 @@ import RepositoryCreateRepositoryModal from "./RepositoryCreateRepositoryModal";
internal: this.internal,
authenticationRequired: this.authenticationRequired,
username: this.username,
password: this.password || null,
password: this.password || "HiddenDecryptedPropertyPlaceholder",
enabled: this.enabled,
uuid: this.uuid
}).then((response) => {
Expand Down

0 comments on commit fa607ce

Please sign in to comment.