Copy Npub button
This commit is contained in:
@@ -12,12 +12,21 @@
|
||||
<body x-data="popup">
|
||||
<div class="profiles">
|
||||
<label for="profile">Active Profile</label>
|
||||
<div class="profile-buttons">
|
||||
<select x-model.number="profileIndex" name="profile" id="profile" class="input">
|
||||
<template x-for="(prof, index) in profileNames" :key="index">
|
||||
<option x-text="prof" :value="index"></option>
|
||||
</template>
|
||||
</select>
|
||||
<div class="profile-buttons flex flex-row gap-2">
|
||||
<div class="grow">
|
||||
<select x-model.number="profileIndex" name="profile" id="profile" class="input">
|
||||
<template x-for="(prof, index) in profileNames" :key="index">
|
||||
<option x-text="prof" :value="index"></option>
|
||||
</template>
|
||||
</select>
|
||||
</div>
|
||||
<button class="button p-1.5" @click.prevent="await copyNpub()" style="display: block;" title="Copy npub">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" height="1em"
|
||||
viewBox="0 0 512 512"><!--! Font Awesome Free 6.4.0 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license (Commercial License) Copyright 2023 Fonticons, Inc. -->
|
||||
<path
|
||||
d="M272 0H396.1c12.7 0 24.9 5.1 33.9 14.1l67.9 67.9c9 9 14.1 21.2 14.1 33.9V336c0 26.5-21.5 48-48 48H272c-26.5 0-48-21.5-48-48V48c0-26.5 21.5-48 48-48zM48 128H192v64H64V448H256V416h64v48c0 26.5-21.5 48-48 48H48c-26.5 0-48-21.5-48-48V176c0-26.5 21.5-48 48-48z" />
|
||||
</svg>
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user