Skip to content

Commit

Permalink
refactor(forms): reverse btns order
Browse files Browse the repository at this point in the history
  • Loading branch information
becem-gharbi committed Dec 1, 2023
1 parent 7c62d40 commit 245ae04
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 12 deletions.
16 changes: 8 additions & 8 deletions components/Account/Password.vue
Original file line number Diff line number Diff line change
Expand Up @@ -24,14 +24,6 @@
</n-form-item>

<div class="flex gap-4">
<n-button
type="primary"
attr-type="submit"
:loading="pending"
:disabled="pending || !edited"
>
Save
</n-button>
<n-button
secondary
attr-type="reset"
Expand All @@ -40,6 +32,14 @@
>
Reset
</n-button>
<n-button
type="primary"
attr-type="submit"
:loading="pending"
:disabled="pending || !edited"
>
Save
</n-button>
</div>
</n-form>
</template>
Expand Down
8 changes: 4 additions & 4 deletions components/Account/Profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -16,14 +16,14 @@
</n-form-item>

<div class="flex gap-2">
<n-button attr-type="reset" :disabled="pending || !edited" @click="reset">
Reset
</n-button>

<n-button attr-type="submit" :loading="pending" :disabled="pending || !edited" type="primary">
Update
profile
</n-button>

<n-button attr-type="reset" :disabled="pending || !edited" @click="reset">
Reset
</n-button>
</div>
</n-form>
</div>
Expand Down

0 comments on commit 245ae04

Please sign in to comment.