WIP Увеличено время уведомлений
This commit is contained in:
@@ -3,7 +3,7 @@
|
|||||||
.notification-content.flex.mr-16
|
.notification-content.flex.mr-16
|
||||||
.grid(:class="{'grid-rows': message}")
|
.grid(:class="{'grid-rows': message}")
|
||||||
.text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(:class="iconClass")
|
.text-white.text-xs.icon.row-span-full.flex.justify-center.items-center(:class="iconClass")
|
||||||
.text-white.text-base(v-if="title") {{ title }}
|
.text-white.text-base.font-bold(v-if="title") {{ title }}
|
||||||
.text-white.text-base(v-if="message") {{ message }}
|
.text-white.text-base(v-if="message") {{ message }}
|
||||||
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
|
.icon-cancel.cursor-pointer.text-white.opacity-50.text-sm(class="hover:opacity-100 active:opacity-75", @click="delNotification")
|
||||||
</template>
|
</template>
|
||||||
@@ -85,4 +85,5 @@ export default {
|
|||||||
grid-column-gap: 8px
|
grid-column-gap: 8px
|
||||||
.grid-rows
|
.grid-rows
|
||||||
grid-template-rows: repeat(2, auto)
|
grid-template-rows: repeat(2, auto)
|
||||||
|
grid-row-gap: 8px
|
||||||
</style>
|
</style>
|
||||||
|
|||||||
@@ -298,7 +298,7 @@ export default {
|
|||||||
"Не заполнено ФИО клиента",
|
"Не заполнено ФИО клиента",
|
||||||
"Пожалуйста, заполните ФИО клиента",
|
"Пожалуйста, заполните ФИО клиента",
|
||||||
"error",
|
"error",
|
||||||
3000
|
5000
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
addSuccessNotification() {
|
addSuccessNotification() {
|
||||||
@@ -307,7 +307,7 @@ export default {
|
|||||||
"Клиент успешно создан",
|
"Клиент успешно создан",
|
||||||
"",
|
"",
|
||||||
"success",
|
"success",
|
||||||
3000
|
5000
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -56,7 +56,7 @@ export default {
|
|||||||
"Событие успешно удалено",
|
"Событие успешно удалено",
|
||||||
"",
|
"",
|
||||||
"success",
|
"success",
|
||||||
3000
|
5000
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
@@ -365,15 +365,14 @@ export default {
|
|||||||
addErrrorNotification(error) {
|
addErrrorNotification(error) {
|
||||||
addNotification(
|
addNotification(
|
||||||
new Date().getTime(),
|
new Date().getTime(),
|
||||||
error.type,
|
error.errors[0].code,
|
||||||
`error code: ${error.errors[0].code}
|
error.errors[0].detail,
|
||||||
error detail: ${error.errors[0].detail}`,
|
|
||||||
"error",
|
"error",
|
||||||
3000
|
5000
|
||||||
);
|
);
|
||||||
},
|
},
|
||||||
addSuccessNotification(message) {
|
addSuccessNotification(message) {
|
||||||
addNotification(new Date().getTime(), message, "", "success", 3000);
|
addNotification(new Date().getTime(), message, "", "success", 5000);
|
||||||
},
|
},
|
||||||
fetchMembersData() {
|
fetchMembersData() {
|
||||||
fetchWrapper
|
fetchWrapper
|
||||||
|
|||||||
Reference in New Issue
Block a user