Merge branch 'release/v2.6.0' of https://github.com/ONLYOFFICE/DocSpace-client into release/v2.6.0
This commit is contained in:
commit
660e5ba013
@ -462,6 +462,7 @@ const EmbeddingPanelComponent = (props: EmbeddingPanelProps) => {
|
|||||||
selectedOption={selectedLink as TOption}
|
selectedOption={selectedLink as TOption}
|
||||||
displaySelectedOption
|
displaySelectedOption
|
||||||
directionY="bottom"
|
directionY="bottom"
|
||||||
|
withLabel={false}
|
||||||
/>
|
/>
|
||||||
</>
|
</>
|
||||||
)}
|
)}
|
||||||
|
@ -50,17 +50,18 @@ import { PRODUCT_NAME } from "@docspace/shared/constants";
|
|||||||
const RemovePortal = (props) => {
|
const RemovePortal = (props) => {
|
||||||
const { t, greetingTitle, linkData, companyInfoSettingsData } = props;
|
const { t, greetingTitle, linkData, companyInfoSettingsData } = props;
|
||||||
const [isRemoved, setIsRemoved] = useState(false);
|
const [isRemoved, setIsRemoved] = useState(false);
|
||||||
const navigate = useNavigate();
|
|
||||||
|
|
||||||
const url = companyInfoSettingsData?.site
|
const url = companyInfoSettingsData?.site
|
||||||
? companyInfoSettingsData.site
|
? companyInfoSettingsData.site
|
||||||
: "https://onlyoffice.com";
|
: "https://onlyoffice.com";
|
||||||
|
|
||||||
|
const navigate = useNavigate();
|
||||||
|
|
||||||
const onDeleteClick = async () => {
|
const onDeleteClick = async () => {
|
||||||
try {
|
try {
|
||||||
await deletePortal(linkData.confirmHeader);
|
const res = await deletePortal(linkData.confirmHeader);
|
||||||
setIsRemoved(true);
|
setIsRemoved(true);
|
||||||
setTimeout(() => (location.href = url), 10000);
|
setTimeout(() => (location.href = res ? res : url), 10000);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
toastr.error(e);
|
toastr.error(e);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user