Уведомления жирнее, поиск по кнопке enter
This commit is contained in:
@@ -3,8 +3,8 @@
|
||||
.notification-content.flex.mr-16
|
||||
.grid(:class="{'grid-rows': message}")
|
||||
.text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(:class="iconClass")
|
||||
.text-white.text-base.font-bold(v-if="title") {{ title }}
|
||||
.text-white.text-base(v-if="message") {{ message }}
|
||||
.text-white.text-base.font-black(v-if="title") {{ title }}
|
||||
.text-white.text-base.font-semibold(v-if="message") {{ message }}
|
||||
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
|
||||
</template>
|
||||
|
||||
|
||||
@@ -49,4 +49,5 @@ export default {
|
||||
background: url("../../assets/icons/calendar-input.svg") no-repeat 100% 50%
|
||||
&::-webkit-calendar-picker-indicator
|
||||
opacity: 0
|
||||
cursor: pointer
|
||||
</style>
|
||||
|
||||
@@ -43,4 +43,6 @@ export default {
|
||||
border-radius: 4px
|
||||
background-color: var(--default-white)
|
||||
color: var(--font-black-color)
|
||||
input::-webkit-calendar-picker-indicator
|
||||
cursor: pointer
|
||||
</style>
|
||||
|
||||
@@ -6,7 +6,8 @@
|
||||
:with-icon="true",
|
||||
icon-position="left",
|
||||
v-model:value="searchClient",
|
||||
placeholder="Введите фамилию"
|
||||
placeholder="Введите фамилию",
|
||||
@keyup.enter="searchLastName"
|
||||
)
|
||||
.icon-search
|
||||
base-button.font-semibold(
|
||||
|
||||
@@ -410,17 +410,17 @@ export default {
|
||||
if (response.type) {
|
||||
if (response.errors[0].code === "blank")
|
||||
this.addErrorNotification(
|
||||
"Ошибка создания ДУЛ",
|
||||
"Ошибка редактрирования ДУЛ",
|
||||
"Часть паспортных данных не заполнена"
|
||||
);
|
||||
if (response.errors[0].code === "Ошибка создания ДУЛ")
|
||||
if (response.errors[0].code === "Ошибка редактрирования ДУЛ")
|
||||
this.addErrorNotification(
|
||||
response.errors[0].code,
|
||||
response.errors[0].detail
|
||||
);
|
||||
if (response?.errors[0].code === "invalid")
|
||||
this.addErrorNotification(
|
||||
"Ошибка создания ДУЛ",
|
||||
"Ошибка редактрирования ДУЛ",
|
||||
"Дата выдачи паспорта не заполнена"
|
||||
);
|
||||
} else this.addSuccessNotification("Изменения успешно сохранены", "");
|
||||
|
||||
Reference in New Issue
Block a user