forked from dbroqua/MusicTopus
Added pagination size
This commit is contained in:
parent
d4e6d23459
commit
bf2e9be3b7
11 changed files with 54 additions and 17 deletions
|
@ -11,6 +11,8 @@ if (typeof email !== "undefined" && typeof username !== "undefined") {
|
|||
password: "",
|
||||
passwordConfirm: "",
|
||||
// eslint-disable-next-line no-undef
|
||||
pagination,
|
||||
// eslint-disable-next-line no-undef
|
||||
mastodon: mastodon || {
|
||||
publish: false,
|
||||
url: "",
|
||||
|
@ -56,7 +58,7 @@ if (typeof email !== "undefined" && typeof username !== "undefined") {
|
|||
// eslint-disable-next-line no-unused-vars
|
||||
async updateProfil() {
|
||||
this.errors = [];
|
||||
const { oldPassword, password, passwordConfirm, mastodon } =
|
||||
const { oldPassword, password, passwordConfirm, mastodon, pagination } =
|
||||
this.formData;
|
||||
|
||||
if (password && !oldPassword) {
|
||||
|
@ -82,6 +84,8 @@ if (typeof email !== "undefined" && typeof username !== "undefined") {
|
|||
data.oldPassword = oldPassword;
|
||||
}
|
||||
|
||||
data.pagination = pagination;
|
||||
|
||||
try {
|
||||
await axios.patch(`/api/v1/me`, data);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue