Set the username that we need
This commit is contained in:
parent
5436d69c35
commit
5ac6e47cb2
1 changed files with 13 additions and 2 deletions
|
|
@ -1,10 +1,10 @@
|
|||
<template>
|
||||
<div id="control">
|
||||
<div
|
||||
v-if="user.name || dev || preview"
|
||||
v-if="username"
|
||||
id="user_data"
|
||||
>
|
||||
{{ user.name }}
|
||||
{{ username }}
|
||||
</div>
|
||||
<div id="type">
|
||||
<select v-model="type">
|
||||
|
|
@ -73,6 +73,17 @@ export default {
|
|||
amount: ``,
|
||||
};},
|
||||
computed: {
|
||||
username() {
|
||||
if (this.user.name) {
|
||||
return this.user.name;
|
||||
} else if (this.dev) {
|
||||
return `Developer Mode`;
|
||||
} else if (this.preview) {
|
||||
return `Preview Mode`;
|
||||
} else {
|
||||
return ``;
|
||||
};
|
||||
},
|
||||
button_text() {
|
||||
let pre_text = `Get Top`;
|
||||
switch (this.amount) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue