remove self hosted expansion flag in favor of grouping hosted expansion with hosted purhcase and it's flag.

Этот коммит содержится в:
Conor Macpherson
2023-04-17 16:11:43 -04:00
родитель 2cd40d6560
Коммит f613c655e7
6 изменённых файлов: 4 добавлений и 12 удалений

Просмотреть файл

@@ -69,7 +69,7 @@ describe('components/admin_console/license_settings/enterprise_edition/enterpris
admin: {
config: {
ServiceSettings: {
SelfHostedExpansion: true,
SelfHostedPurchase: true,
},
},
},

Просмотреть файл

@@ -59,13 +59,13 @@ const EnterpriseEditionLeftPanel = ({
const canExpand = useCanSelfHostedExpand();
const selfHostedExpansionModal = useControlSelfHostedExpansionModal({trackingLocation: 'license_settings_add_seats'});
const expandableLink = useSelector(getExpandSeatsLink);
const isSelfHostedExpansionEnabled = useSelector(getConfig)?.ServiceSettings?.SelfHostedExpansion;
const isSelfHostedPurchaseEnabled = useSelector(getConfig)?.ServiceSettings?.SelfHostedPurchase;
const query = useQuery();
const actionQueryParam = query.get('action');
useEffect(() => {
if (actionQueryParam === 'show_expansion_modal' && canExpand && isSelfHostedExpansionEnabled) {
if (actionQueryParam === 'show_expansion_modal' && canExpand && isSelfHostedPurchaseEnabled) {
selfHostedExpansionModal.open();
query.set('action', '');
}
@@ -100,7 +100,7 @@ const EnterpriseEditionLeftPanel = ({
);
const handleClickAddSeats = () => {
if (!isSelfHostedExpansionEnabled || !canExpand) {
if (!isSelfHostedPurchaseEnabled || !canExpand) {
window.open(expandableLink(unsanitizedLicense.Id), '_blank');
} else {
selfHostedExpansionModal.open();

Просмотреть файл

@@ -369,7 +369,6 @@ export type ServiceSettings = {
EnableCustomGroups: boolean;
SelfHostedPurchase: boolean;
AllowSyncedDrafts: boolean;
SelfHostedExpansion: boolean;
};
export type TeamSettings = {