Browse Source

eliminate extra code for quick-message-display

kb/add-usage-guide
Trent Larson 1 year ago
parent
commit
44ed39b5c1
  1. 12
      src/views/AccountViewView.vue

12
src/views/AccountViewView.vue

@ -151,8 +151,12 @@
<code class="truncate">{{ derivationPath }}</code> <code class="truncate">{{ derivationPath }}</code>
<button <button
@click=" @click="
copyText($event, derivationPath, 'derpath'); derpath = true;
derpath = !derpath; copy(derivationPath).then(() => {
st(function () {
derpath = !derpath;
});
});
" "
class="ml-2" class="ml-2"
> >
@ -332,7 +336,7 @@ export default class AccountViewView extends Vue {
} }
st(f) { st(f) {
setTimeout(f, 10000); setTimeout(f, 2000);
} }
copyText = (e: MouseEvent, inputText: string, loc: string) => { copyText = (e: MouseEvent, inputText: string, loc: string) => {
@ -342,8 +346,6 @@ export default class AccountViewView extends Vue {
if (loc == "did") { if (loc == "did") {
this.showCopyMessage(); this.showCopyMessage();
console.log(this); console.log(this);
} else if (loc == "derpath") {
this.derpath = true;
} else if (loc == "base64") { } else if (loc == "base64") {
this.base64 = true; this.base64 = true;
} else if (loc == "pubhex") { } else if (loc == "pubhex") {

Loading…
Cancel
Save