Merge pull request #164 from dderbentsov/UC-91
WIP Увеличено время уведомлений
This commit is contained in:
@@ -3,7 +3,7 @@
|
||||
.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(v-if="title") {{ title }}
|
||||
.text-white.text-base.font-bold(v-if="title") {{ title }}
|
||||
.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")
|
||||
</template>
|
||||
@@ -85,4 +85,5 @@ export default {
|
||||
grid-column-gap: 8px
|
||||
.grid-rows
|
||||
grid-template-rows: repeat(2, auto)
|
||||
grid-row-gap: 8px
|
||||
</style>
|
||||
|
||||
@@ -298,7 +298,7 @@ export default {
|
||||
"Не заполнено ФИО клиента",
|
||||
"Пожалуйста, заполните ФИО клиента",
|
||||
"error",
|
||||
3000
|
||||
5000
|
||||
);
|
||||
},
|
||||
addSuccessNotification() {
|
||||
@@ -307,7 +307,7 @@ export default {
|
||||
"Клиент успешно создан",
|
||||
"",
|
||||
"success",
|
||||
3000
|
||||
5000
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -56,7 +56,7 @@ export default {
|
||||
"Событие успешно удалено",
|
||||
"",
|
||||
"success",
|
||||
3000
|
||||
5000
|
||||
);
|
||||
},
|
||||
},
|
||||
|
||||
@@ -365,15 +365,14 @@ export default {
|
||||
addErrrorNotification(error) {
|
||||
addNotification(
|
||||
new Date().getTime(),
|
||||
error.type,
|
||||
`error code: ${error.errors[0].code}
|
||||
error detail: ${error.errors[0].detail}`,
|
||||
error.errors[0].code,
|
||||
error.errors[0].detail,
|
||||
"error",
|
||||
3000
|
||||
5000
|
||||
);
|
||||
},
|
||||
addSuccessNotification(message) {
|
||||
addNotification(new Date().getTime(), message, "", "success", 3000);
|
||||
addNotification(new Date().getTime(), message, "", "success", 5000);
|
||||
},
|
||||
fetchMembersData() {
|
||||
fetchWrapper
|
||||
|
||||
Reference in New Issue
Block a user