Merge branch 'master' into MM-50966-in-product-expansion
Этот коммит содержится в:
@@ -1783,9 +1783,10 @@ export default class Client4 {
|
||||
);
|
||||
};
|
||||
|
||||
getChannelStats = (channelId: string) => {
|
||||
getChannelStats = (channelId: string, excludeFilesCount = false) => {
|
||||
const param = excludeFilesCount ? `?exclude_files_count=${excludeFilesCount}` : '';
|
||||
return this.doFetch<ChannelStats>(
|
||||
`${this.getChannelRoute(channelId)}/stats`,
|
||||
`${this.getChannelRoute(channelId)}/stats${param}`,
|
||||
{method: 'get'},
|
||||
);
|
||||
};
|
||||
@@ -4262,7 +4263,7 @@ export default class Client4 {
|
||||
}
|
||||
|
||||
cwsAvailabilityCheck = () => {
|
||||
return this.doFetch<StatusOK>(
|
||||
return this.doFetchWithResponse(
|
||||
`${this.getCloudRoute()}/check-cws-connection`,
|
||||
{method: 'get'},
|
||||
);
|
||||
|
||||
@@ -1,13 +1,14 @@
|
||||
// Copyright (c) 2015-present Mattermost, Inc. All Rights Reserved.
|
||||
// See LICENSE.txt for license information.
|
||||
|
||||
import React, {useRef} from 'react';
|
||||
import React, {useRef, useState} from 'react';
|
||||
import {FormattedMessage} from 'react-intl';
|
||||
import Tippy from '@tippyjs/react';
|
||||
import {Placement} from 'tippy.js';
|
||||
import classNames from 'classnames';
|
||||
|
||||
import {PunchOutCoordsHeightAndWidth} from '../common/hooks/useMeasurePunchouts';
|
||||
import {useClickOutsideRef} from '../common/hooks/useClickOutsideRef';
|
||||
|
||||
import 'tippy.js/dist/tippy.css';
|
||||
import 'tippy.js/themes/light-border.css';
|
||||
@@ -89,12 +90,15 @@ export const TourTip = ({
|
||||
}: Props) => {
|
||||
const FIRST_STEP_INDEX = 0;
|
||||
const triggerRef = useRef(null);
|
||||
const [useBackdrop, setUseBackdrop] = useState(!hideBackdrop);
|
||||
const onJump = (event: React.MouseEvent, jumpToStep: number) => {
|
||||
if (handleJump) {
|
||||
handleJump(event, jumpToStep);
|
||||
}
|
||||
handleJump?.(event, jumpToStep);
|
||||
};
|
||||
|
||||
useClickOutsideRef(triggerRef, () => {
|
||||
setUseBackdrop(false);
|
||||
});
|
||||
|
||||
// This needs to be changed if root-portal node isn't available to maybe body
|
||||
const rootPortal = document.getElementById('root-portal');
|
||||
|
||||
@@ -210,7 +214,7 @@ export const TourTip = ({
|
||||
>
|
||||
<PulsatingDot/>
|
||||
</div>
|
||||
<TourTipBackdrop
|
||||
{useBackdrop && <TourTipBackdrop
|
||||
show={show}
|
||||
onDismiss={handleDismiss}
|
||||
onPunchOut={handlePunchOut}
|
||||
@@ -218,7 +222,7 @@ export const TourTip = ({
|
||||
overlayPunchOut={overlayPunchOut}
|
||||
appendTo={rootPortal!}
|
||||
transparent={hideBackdrop}
|
||||
/>
|
||||
/>}
|
||||
{show && (
|
||||
<Tippy
|
||||
showOnCreate={show}
|
||||
|
||||
@@ -18,13 +18,10 @@ export type ClientConfig = {
|
||||
BannerColor: string;
|
||||
BannerText: string;
|
||||
BannerTextColor: string;
|
||||
BuildBoards: string;
|
||||
BuildDate: string;
|
||||
BuildEnterpriseReady: string;
|
||||
BuildHash: string;
|
||||
BuildHashBoards: string;
|
||||
BuildHashEnterprise: string;
|
||||
BuildHashPlaybooks: string;
|
||||
BuildNumber: string;
|
||||
CollapsedThreads: CollapsedThreads;
|
||||
CustomBrandText: string;
|
||||
@@ -251,6 +248,11 @@ export type RequestLicenseBody = {
|
||||
users: number;
|
||||
terms_accepted: boolean;
|
||||
receive_emails_accepted: boolean;
|
||||
contact_name: string;
|
||||
contact_email: string;
|
||||
company_name: string;
|
||||
company_size: string;
|
||||
company_country: string;
|
||||
}
|
||||
|
||||
export type DataRetentionPolicy = {
|
||||
|
||||
@@ -7,7 +7,7 @@ export type WorkTemplatesState = {
|
||||
categories: Category[];
|
||||
templatesInCategory: Record<string, WorkTemplate[]>;
|
||||
playbookTemplates: PlaybookTemplateType[];
|
||||
linkedProducts: Record<string, number>;
|
||||
linkedProducts: Record<string, string | number>;
|
||||
}
|
||||
|
||||
export interface PlaybookTemplateType {
|
||||
|
||||
Ссылка в новой задаче
Block a user