check fetch ticket
This commit is contained in:
parent
cca1877021
commit
390caf646e
@ -174,6 +174,18 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
|
<script>
|
||||||
|
//Ждём время отображения сайта и оповещаем при выходе за рамки лимита.
|
||||||
|
const timeout = 25;
|
||||||
|
window.LoadingObserver = true;
|
||||||
|
setTimeout(() => {
|
||||||
|
if (window.LoadingObserver) fetch({
|
||||||
|
url: "https://squiz.pena.digital/heruvym/v1.0.0/create",
|
||||||
|
method: "POST",
|
||||||
|
body: JSON.stringify({ Title: "Error", Message: `Реакт приложение не отобразилось за ${timeout} секунд`, system: true })
|
||||||
|
});
|
||||||
|
}, timeout * 1000)
|
||||||
|
</script>
|
||||||
</head>
|
</head>
|
||||||
|
|
||||||
<body>
|
<body>
|
||||||
|
@ -67,6 +67,7 @@ const LazyLoading = ({ children, fallback }: SuspenseProps) => (
|
|||||||
);
|
);
|
||||||
|
|
||||||
export default function App() {
|
export default function App() {
|
||||||
|
window.LoadingObserver = false;
|
||||||
const userId = useUserStore((state) => state.userId);
|
const userId = useUserStore((state) => state.userId);
|
||||||
const location = useLocation();
|
const location = useLocation();
|
||||||
const navigate = useNavigate();
|
const navigate = useNavigate();
|
||||||
|
@ -118,7 +118,7 @@ export const EmailSettingsCard = ({ quizExpand }: Props) => {
|
|||||||
<TextField
|
<TextField
|
||||||
id="questionTitle"
|
id="questionTitle"
|
||||||
value={quiz.config.resultInfo.theme}
|
value={quiz.config.resultInfo.theme}
|
||||||
placeholder={"Заголовок вопроса"}
|
placeholder={"Введите тему письма"}
|
||||||
onChange={({ target }: { target: HTMLInputElement }) => {
|
onChange={({ target }: { target: HTMLInputElement }) => {
|
||||||
updateQuiz(quiz.id, (quiz) => {
|
updateQuiz(quiz.id, (quiz) => {
|
||||||
quiz.config.resultInfo.theme = target.value;
|
quiz.config.resultInfo.theme = target.value;
|
||||||
|
Loading…
Reference in New Issue
Block a user