feat: save relay extra config
This commit is contained in:
parent
f689e829eb
commit
25dde9571c
4 changed files with 28 additions and 21 deletions
|
|
@ -162,14 +162,14 @@
|
|||
<q-input
|
||||
filled
|
||||
dense
|
||||
v-model.trim="relay.config.maxFilters"
|
||||
v-model.trim="relay.config.maxClientFilters"
|
||||
type="number"
|
||||
min="0"
|
||||
></q-input>
|
||||
</div>
|
||||
<div class="col-6">
|
||||
<q-badge
|
||||
v-if="relay.config.maxFilters == 0"
|
||||
v-if="relay.config.maxClientFilters == 0"
|
||||
color="green"
|
||||
class="float-left"
|
||||
><span>Unlimited Filters</span>
|
||||
|
|
|
|||
|
|
@ -56,16 +56,6 @@ async function relayDetails(path) {
|
|||
'/nostrrelay/api/v1/relay/' + this.relayId,
|
||||
this.inkey
|
||||
)
|
||||
data.config = {
|
||||
isPaidRelay: true,
|
||||
wallet: '',
|
||||
costToJoin: 0,
|
||||
freeStorage: 0,
|
||||
storageCostPerKb: 0,
|
||||
maxFilters: 0,
|
||||
allowedPublicKeys: [],
|
||||
blockedPublicKeys: []
|
||||
}
|
||||
this.relay = data
|
||||
|
||||
console.log('### this.relay', this.relay)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue