Skip to content

Commit

Permalink
[FIX] Marketplace app status initially disabled (#27330)
Browse files Browse the repository at this point in the history
  • Loading branch information
rique223 authored Jan 12, 2023
1 parent 3a1f7e0 commit d332c36
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions apps/meteor/client/views/admin/apps/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { Utilities } from '../../../../app/apps/lib/misc/Utilities';
import { t } from '../../../../app/utils/client';
import { dispatchToastMessage } from '../../../lib/toast';

export const appEnabledStatuses = [AppStatus.AUTO_ENABLED, AppStatus.MANUALLY_ENABLED];
export const appEnabledStatuses = [AppStatus.AUTO_ENABLED, AppStatus.MANUALLY_ENABLED, AppStatus.INITIALIZED];

// eslint-disable-next-line @typescript-eslint/naming-convention
interface ApiError {
Expand Down Expand Up @@ -38,7 +38,7 @@ type appButtonResponseProps = {

type appStatusSpanResponseProps = {
type?: 'failed' | 'warning';
icon: 'warning' | 'ban' | 'checkmark-circled' | 'check';
icon?: 'warning' | 'ban' | 'checkmark-circled' | 'check';
label: 'Config Needed' | 'Failed' | 'Disabled' | 'Trial period' | 'Installed' | 'Incompatible';
tooltipText?: string;
};
Expand Down Expand Up @@ -286,7 +286,6 @@ export const appStatusSpanProps = ({ installed, status, subscriptionInfo }: App)
if (!isEnabled) {
return {
type: 'warning',
icon: 'ban',
label: 'Disabled',
};
}
Expand Down

0 comments on commit d332c36

Please sign in to comment.