Skip to content

Commit

Permalink
#3 add Back button
Browse files Browse the repository at this point in the history
  • Loading branch information
motorina0 committed May 31, 2021
1 parent 02ddbd6 commit decfc27
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 18 deletions.
32 changes: 15 additions & 17 deletions src/components/Connect.vue
Original file line number Diff line number Diff line change
Expand Up @@ -62,23 +62,14 @@
</p>
</q-expansion-item>

<div class="row q-mt-lg">
<q-btn v-if="hasActiveUser" @click="disconnect" color="red-10" unelevated
>Disconnect</q-btn
>

<q-btn
v-if="!hasActiveUser"
@click="connect"
color="deep-purple"
type="submit"
unelevated
>Connect</q-btn
>
<div v-if="!hasActiveUser" class="row q-mt-lg">
<q-btn @click="connect" color="deep-purple" type="submit" unelevated>Connect</q-btn>
<q-space />
<q-btn @click="connectNewUser" color="purple" unelevated>New User</q-btn>
</div>
<div v-else class="row q-mt-lg">
<q-btn @click="disconnect" color="red-10" unelevated>Disconnect</q-btn>
<q-space />
<q-btn v-if="!hasActiveUser" @click="connectNewUser" color="purple" unelevated
>New User</q-btn
>
<q-btn
v-if="requestDisconnect"
@click="cancelDisconnect"
Expand All @@ -87,6 +78,14 @@
class="q-ml-auto"
>Cancel</q-btn
>
<q-btn
v-if="!requestDisconnect"
@click="connect"
flat
color="grey"
class="q-ml-auto"
>Back</q-btn
>
</div>
</div>
</q-card-section>
Expand Down Expand Up @@ -194,7 +193,6 @@ export default {
}
},
async connect() {
console.log('!!!!!!!! connect')
try {
const user = await lnBitsConnect.checkUser(this.serverUrl, this.userId)
Expand Down
2 changes: 1 addition & 1 deletion src/components/LNbitsWrapper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ export default {
message: 'Loading...',
caption: serverUrl,
position: 'center',
timeout: 5000,
timeout: 1500,
spinner: true,
})
Expand Down

0 comments on commit decfc27

Please sign in to comment.