Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 7 additions & 2 deletions src/views/ASFConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -100,8 +100,13 @@
// if we got routed to asf-config with params, we propably
// came from PasswordHash.vue and want to set ipc data from params
if (Object.keys(this.$route.params).length !== 0) {
this.model.IPCPassword = this.$route.params?.ipcPassword;
this.model.IPCPasswordFormat = this.$route.params?.ipcPasswordFormat;
// only set the values if they exist in the params
if (typeof this.$route.params.ipcPassword !== 'undefined') {
this.model.IPCPassword = this.$route.params.ipcPassword;
}
if (typeof this.$route.params.ipcPasswordFormat !== 'undefined') {
this.model.IPCPasswordFormat = this.$route.params.ipcPasswordFormat;
}
}

const extendedFields = {
Expand Down
9 changes: 7 additions & 2 deletions src/views/modals/BotConfig.vue
Original file line number Diff line number Diff line change
Expand Up @@ -102,8 +102,13 @@
// if we got routed to bot-config with params, we propably
// came from PasswordEncrypt.vue and want to set password data from params
if (Object.keys(this.$route.params).length !== 0) {
this.model.SteamPassword = this.$route.params?.steamPassword;
this.model.PasswordFormat = this.$route.params?.passwordFormat;
// only set the values if they exist in the params
if (typeof this.$route.params.steamPassword !== 'undefined') {
this.model.SteamPassword = this.$route.params.steamPassword;
}
if (typeof this.$route.params.passwordFormat !== 'undefined') {
this.model.PasswordFormat = this.$route.params.passwordFormat;
}
}

const extendedFields = {
Expand Down
Loading