UI data loading finally working! hallelluja
This commit is contained in:
@@ -8,8 +8,8 @@
|
||||
<body x-data="popup">
|
||||
<div class="profiles">
|
||||
<label for="profile">Profile</label>
|
||||
<select x-model="profileIndex" name="profile" id="profile" @change="setProfileIndex()">
|
||||
<template x-for="(prof, index) in profiles">
|
||||
<select x-model.number="profileIndex" name="profile" id="profile">
|
||||
<template x-for="(prof, index) in profileNames" :key="index">
|
||||
<option x-text="prof" :value="index"></option>
|
||||
</template>
|
||||
</select>
|
||||
@@ -18,17 +18,18 @@
|
||||
|
||||
<div class="profile-name">
|
||||
<label for="profile-name">Profile Name</label>
|
||||
<input type="text" id="profile-name" x-model="activeProfile.name">
|
||||
<input type="text" id="profile-name" x-model="name">
|
||||
</div>
|
||||
|
||||
<div class="key">
|
||||
<label for="priv-key">Private Key</label>
|
||||
<input id="priv-key" x-model="activeProfile.privKey" :type="visibleKey ? 'text' : 'password'">
|
||||
<input id="priv-key" x-model="privKey" :type="visibleKey ? 'text' : 'password'">
|
||||
</div>
|
||||
|
||||
<div class="buttons">
|
||||
<button @click="visibleKey = !visibleKey" x-text="visibleKey ? 'Hide' : 'Show'"></button>
|
||||
<button @click="saveKey()">Save</button>
|
||||
<button @click="profileIndex = 1">Profile Index</button>
|
||||
</div>
|
||||
|
||||
<div x-show="hasValidPubKey">
|
||||
|
||||
Reference in New Issue
Block a user