Change button tooltip
This commit is contained in:
parent
9aa9305755
commit
36408d74ad
|
@ -121,6 +121,7 @@ export default new class E2EE extends BuiltinModule {
|
|||
}
|
||||
}
|
||||
|
||||
// TODO Bug: If exchange is done fast enough it sometimes ask you to accept your own sent key
|
||||
async handlePublicKey(component) {
|
||||
if (!component.props.channel || component.props.channel.type !== 1) return;
|
||||
if (component.props.message.author.id === DiscordApi.currentUser.id) return;
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
<div @click="toggleEncrypt" :class="{'bd-warn': !E2EE.encryptNewMessages, 'bd-ok': E2EE.encryptNewMessages}"><MiLock size="16" v-tooltip="'Toggle Encryption'" /></div>
|
||||
<div v-close-popover @click="showUploadDialog" v-if="!error"><MiImagePlus size="16" v-tooltip="'Upload Encrypted Image'" /></div>
|
||||
<!-- Using these icons for now -->
|
||||
<div v-close-popover @click="generatePublicKey" v-if="DiscordApi.currentChannel.type === 'DM'"><MiPencil size="16" v-tooltip="'Generate Public Key'" /></div>
|
||||
<div v-close-popover @click="generatePublicKey" v-if="DiscordApi.currentChannel.type === 'DM'"><MiPencil size="16" v-tooltip="'Begin Key Exchange'" /></div>
|
||||
</template>
|
||||
</v-popover>
|
||||
<div class="bd-taDivider"></div>
|
||||
|
|
Loading…
Reference in New Issue