Options is now showing keys, and changing keys as the dropdown is switched.
This commit is contained in:
@@ -12,18 +12,47 @@
|
||||
<body x-data="options" class="text-fuchsia-900 p-3.5 lg:p-32">
|
||||
<h1 class="text-3xl lg:text-6xl font-bold">Nostore</h1>
|
||||
|
||||
<!-- PROFILES -->
|
||||
<div class="mt-6">
|
||||
<label for="profiles">Profile</label>
|
||||
<br>
|
||||
<select class="input w-64" x-model.number="profileIndex" id="profiles">
|
||||
<select class="input" x-model.number="profileIndex" id="profiles">
|
||||
<template x-for="(profileName, index) in profileNames" :key="profileName">
|
||||
<option x-text="profileName" :value="index"></option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
|
||||
<!-- KEYS -->
|
||||
<div class="section">
|
||||
<h2 class="text-2xl lg:text-5xl font-bold">Relays</h2>
|
||||
<h2 class="section-header">Keys</h2>
|
||||
|
||||
<div class="mt-3">
|
||||
<label for="profile-name">Profile Name</label>
|
||||
<br>
|
||||
<input x-model="profileName" type="text" class="input">
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<label for="priv-key">Private Key</label>
|
||||
<br>
|
||||
<input x-model="privKey" type="text" class="input">
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<label for="pub-key">Public Key</label>
|
||||
<br>
|
||||
<input x-model="pubKey" type="text" class="input" disabled>
|
||||
</div>
|
||||
|
||||
<div class="mt-3">
|
||||
<button class="button" :disabled="!needsSave">Save</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<!-- RELAYS -->
|
||||
<div class="section">
|
||||
<h2 class="section-header">Relays</h2>
|
||||
|
||||
<template x-if="hasRelays">
|
||||
<table class="mt-3">
|
||||
@@ -57,7 +86,7 @@
|
||||
</template>
|
||||
|
||||
<div class="mt-3" x-show="hasRecommendedRelays">
|
||||
<select x-model="recommendedRelay" class="input w-64">
|
||||
<select x-model="recommendedRelay" class="input">
|
||||
<option value="" disabled selected>Recommended Relays</option>
|
||||
<template x-for="relay in recommendedRelays">
|
||||
<option :value="relay" x-text="relay"></option>
|
||||
|
||||
Reference in New Issue
Block a user