Skip to content

Commit

Permalink
Move save changes button to top
Browse files Browse the repository at this point in the history
  • Loading branch information
magnetenstad committed Jan 29, 2024
1 parent 584ebb8 commit d99c698
Showing 1 changed file with 8 additions and 9 deletions.
17 changes: 8 additions & 9 deletions src/views/UserView.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,13 @@
<template>
<button id="back" @click="router.push({ name: 'home' })">Back</button>
<div class="row">
<button v-if="changed" id="discard" @click="discardChanges">
Discard Changes
</button>
<button v-if="changed" id="save" class="primary" @click="saveChanges">
Save Changes
</button>
</div>

<h2>User</h2>
<label for="name">Display Name</label>
Expand Down Expand Up @@ -58,15 +66,6 @@
<button @click="router.push({ name: 'password' })" id="change-password">
Change Password
</button>
<div class="row">
<button v-if="changed" id="discard" @click="discardChanges">
Discard Changes
</button>
<button v-if="changed" id="save" class="primary" @click="saveChanges">
Save Changes
</button>
</div>
<br />
<br />
<button id="logout" @click="logout">Logout</button>
Expand Down

0 comments on commit d99c698

Please sign in to comment.