Skip to content

Commit

Permalink
BNS backup owner field removed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alexsanchez06 committed Mar 1, 2024
1 parent 39f821c commit 7b761fb
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 69 deletions.
41 changes: 0 additions & 41 deletions mybnsdata.js

This file was deleted.

8 changes: 4 additions & 4 deletions src/components/bns/bns_input.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@
{{ this.confirmModal.record.owner }}
</div>
</div>
<div
<!-- <div
v-if="this.confirmModal.backup_owner"
class="tablewrapper flex row q-mt-md"
>
<div class="label">Backup Owner</div>
<div class="address">
{{ this.confirmModal.record.backup_owner }}
</div>
</div>
</div> -->
</section>
</q-card-section>
<q-card-section class="q-pt-none ownerDetails q-mx-lg q-my-md q-pa-md">
Expand Down Expand Up @@ -210,8 +210,8 @@ export default {
const updatedRecord = {
...record,
value: record.value,
owner: record.owner,
backup_owner: record.backup_owner
owner: record.owner
// backup_owner: record.backup_owner
};
let passwordDialog = await this.showPasswordConfirmation({
Expand Down
48 changes: 24 additions & 24 deletions src/components/bns/bns_input_form.vue
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
</div>

<!-- Backup owner -->
<div class="col q-mt-sm">
<!-- <div class="col q-mt-sm">
<OxenField
class="q-mt-md"
:label="$t('fieldLabels.backupOwner')"
Expand All @@ -83,7 +83,7 @@
@blur="$v.record.backup_owner.$touch"
/>
</OxenField>
</div>
</div>-->
<div
class="idSelectorWrapper"
:class="[idsValidation ? 'errorborder' : '']"
Expand Down Expand Up @@ -256,8 +256,8 @@ export default {
type: "",
name: "",
value: "",
owner: "",
backup_owner: ""
owner: ""
// backup_owner: ""
};
return {
Expand Down Expand Up @@ -322,12 +322,12 @@ export default {
const isOwnerDifferent =
this.record.owner !== "" &&
this.record.owner !== this.initialRecord.owner;
const isBackupOwnerDifferent =
this.record.backup_owner !== "" &&
this.record.backup_owner !== this.initialRecord.backup_owner;
// const isBackupOwnerDifferent =
// this.record.backup_owner !== "" &&
// this.record.backup_owner !== this.initialRecord.backup_owner;
const isValueDifferent = this.record.value !== this.initialRecord.value;
const different =
isOwnerDifferent || isBackupOwnerDifferent || isValueDifferent;
const different = isOwnerDifferent || isValueDifferent;
// isBackupOwnerDifferent ||
return different;
}
Expand All @@ -354,8 +354,8 @@ export default {
type: "bchat",
name: "",
value: "",
owner: "",
backup_owner: ""
owner: ""
// backup_owner: ""
};
}
}),
Expand Down Expand Up @@ -408,14 +408,14 @@ export default {
return;
}
if (this.$v.record.backup_owner.$error) {
this.$q.notify({
type: "negative",
timeout: 3000,
message: this.$t("notification.errors.invalidBackupOwner")
});
return;
}
// if (this.$v.record.backup_owner.$error) {
// this.$q.notify({
// type: "negative",
// timeout: 3000,
// message: this.$t("notification.errors.invalidBackupOwner")
// });
// return;
// }
if (this.$v.record.owner.$error) {
this.$q.notify({
Expand Down Expand Up @@ -503,12 +503,12 @@ export default {
validate: function(value) {
return this.isAddress(value);
}
},
backup_owner: {
validate: function(value) {
return this.isAddress(value);
}
}
// backup_owner: {
// validate: function(value) {
// return this.isAddress(value);
// }
// }
},
address: {
validate: function(value) {
Expand Down

0 comments on commit 7b761fb

Please sign in to comment.