mirror of
https://github.com/hcengineering/platform.git
synced 2025-01-08 21:27:45 +03:00
Fix maintenance period warning (#6179)
Signed-off-by: Andrey Sobolev <haiodo@gmail.com>
This commit is contained in:
parent
416eb9942e
commit
7cdfa9747f
@ -1,5 +1,5 @@
|
||||
<script lang="ts">
|
||||
import core, { RateLimiter } from '@hcengineering/core'
|
||||
import core, { RateLimiter, concatLink } from '@hcengineering/core'
|
||||
import login from '@hcengineering/login'
|
||||
import { getEmbeddedLabel, getMetadata } from '@hcengineering/platform'
|
||||
import presentation, { getClient, isAdminUser } from '@hcengineering/presentation'
|
||||
@ -109,9 +109,12 @@
|
||||
on:click={() => {
|
||||
const endpoint = getMetadata(login.metadata.AccountsUrl) ?? ''
|
||||
if (endpoint !== '') {
|
||||
void fetch(endpoint + `/api/v1/manage?token=${token}&operation=maintenance&timeout=${warningTimeout}`, {
|
||||
method: 'PUT'
|
||||
})
|
||||
void fetch(
|
||||
concatLink(endpoint, `/api/v1/manage?token=${token}&operation=maintenance&timeout=${warningTimeout}`),
|
||||
{
|
||||
method: 'PUT'
|
||||
}
|
||||
)
|
||||
}
|
||||
}}
|
||||
/>
|
||||
@ -126,7 +129,7 @@
|
||||
on:click={() => {
|
||||
const endpoint = getMetadata(login.metadata.AccountsUrl) ?? ''
|
||||
if (endpoint !== '') {
|
||||
void fetch(endpoint + `/api/v1/manage?token=${token}&operation=maintenance&timeout=-1`, {
|
||||
void fetch(concatLink(endpoint, `/api/v1/manage?token=${token}&operation=maintenance&timeout=-1`), {
|
||||
method: 'PUT'
|
||||
})
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user