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>
|
<template>
|
||||||
<div id="control">
|
<div id="control">
|
||||||
<div
|
<div
|
||||||
v-if="user.name || dev || preview"
|
v-if="username"
|
||||||
id="user_data"
|
id="user_data"
|
||||||
>
|
>
|
||||||
{{ user.name }}
|
{{ username }}
|
||||||
</div>
|
</div>
|
||||||
<div id="type">
|
<div id="type">
|
||||||
<select v-model="type">
|
<select v-model="type">
|
||||||
|
|
@ -73,6 +73,17 @@ export default {
|
||||||
amount: ``,
|
amount: ``,
|
||||||
};},
|
};},
|
||||||
computed: {
|
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() {
|
button_text() {
|
||||||
let pre_text = `Get Top`;
|
let pre_text = `Get Top`;
|
||||||
switch (this.amount) {
|
switch (this.amount) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue