Исправил пропадание формы при добавлении фото клиента
This commit is contained in:
@@ -326,7 +326,7 @@ export default {
|
||||
async postCreateEvent(event) {
|
||||
const response = await fetchWrapper.post("registry/event/create/", event);
|
||||
if (response.type && response.type === "validation_error") {
|
||||
this.addErrrorNotification(response);
|
||||
this.addErrorNotification(response);
|
||||
} else {
|
||||
this.addSuccessNotification("Событие успешно создано");
|
||||
this.clearForm();
|
||||
@@ -338,7 +338,7 @@ export default {
|
||||
event
|
||||
);
|
||||
if (response.type && response.type === "validation_error") {
|
||||
this.addErrrorNotification(response);
|
||||
this.addErrorNotification(response);
|
||||
} else {
|
||||
this.addSuccessNotification("Изменения успешно сохранены");
|
||||
this.clearForm();
|
||||
@@ -362,7 +362,7 @@ export default {
|
||||
return id;
|
||||
}
|
||||
},
|
||||
addErrrorNotification(error) {
|
||||
addErrorNotification(error) {
|
||||
addNotification(
|
||||
new Date().getTime(),
|
||||
error.errors[0].code,
|
||||
|
||||
@@ -12,17 +12,19 @@
|
||||
.flex.flex-col.gap-y-6px
|
||||
.flex.non-italic.font-semibold.text-xss Логин
|
||||
base-input.h-12.font-medium(
|
||||
:style="{borderColor: wrongData ? this.redColor : ''}"
|
||||
v-model:value="user.username"
|
||||
type="text"
|
||||
placeholder="Введите ваш логин")
|
||||
:style="{borderColor: wrongData ? this.redColor : ''}",
|
||||
v-model:value="user.username",
|
||||
type="text",
|
||||
placeholder="Введите ваш логин"
|
||||
)
|
||||
.flex.flex-col.gap-y-6px.relative
|
||||
.flex.non-italic.font-semibold.text-xss Пароль
|
||||
base-input.h-12(
|
||||
:style="{borderColor: wrongData ? this.redColor : ''}"
|
||||
v-model:value="user.password"
|
||||
:type="changeType"
|
||||
placeholder="Введите ваш пароль")
|
||||
:style="{borderColor: wrongData ? this.redColor : ''}",
|
||||
v-model:value="user.password",
|
||||
:type="changeType",
|
||||
placeholder="Введите ваш пароль"
|
||||
)
|
||||
img.absolute.z-10.right-4.bottom-14px.cursor-pointer(:src="changeIcon", alt="eyePassword", @click="changeView")
|
||||
span.font-medium(:style="{color: this.redColor}", v-show="wrongData") Неверный логин или пароль
|
||||
.flex.items-center.gap-x-11px
|
||||
|
||||
Reference in New Issue
Block a user