All Downloads are FREE. Search and download functionalities are using the official Maven repository.

META-INF.resources.object_entries.object_entry.ObjectEntryFooter.tsx Maven / Gradle / Ivy

The newest version!
/**
 * SPDX-FileCopyrightText: (c) 2025 Liferay, Inc. https://liferay.com
 * SPDX-License-Identifier: LGPL-2.1-or-later OR LicenseRef-Liferay-DXP-EULA-2.0.0-2023-06
 */

import ClayButton from '@clayui/button';
import ClayDropDown from '@clayui/drop-down';
import {navigate} from 'frontend-js-web';
import React from 'react';

import {callWindowGlobalFunction} from '../../js/utils/callWindowGlobalFunction';

interface ObjectEntryFooterProps {
	backURL: string;
	portletNamespace: string;
	submitRef: string;
}

export default function ObjectEntryFooter({
	backURL,
	portletNamespace,
	submitRef,
}: ObjectEntryFooterProps) {
	return (
		
{Liferay.Language.get('publish')} } > { const hiddenInput = document.getElementById( `${portletNamespace}scheduleContainer` ) as HTMLInputElement; if (hiddenInput.value) { const currenthiddenInputValue = JSON.parse(hiddenInput.value); hiddenInput.value = JSON.stringify({ ...currenthiddenInputValue, displayDate: null, }); } callWindowGlobalFunction(submitRef); Liferay.fire('submitObjectEntry'); }} symbolLeft="arrow-right-full" > {Liferay.Language.get('publish')} Liferay.fire('openModalSchedulePublication') } symbolLeft="date-time" > {Liferay.Language.get('schedule-publication')}
{ navigate(backURL); }} type="button" > {Liferay.Language.get('cancel')}
); }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy