Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[#noissue] Change last-selected app setting key #10892

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -20,5 +20,5 @@ export enum APP_SETTING_KEYS {
TRANSACTION_DETAIL_RESIZABLE = 'transactionDetailResizable',
SERVER_MAP_HORIZONTAL_RESIZABLE = 'serverMapHorizontalResizable',
REALTIME_ACTIVE_REQUEST_RESIZABLE = 'realtimeActiveRequestResizable',
ALARM_LAST_SELECTED_APPLICATION = 'alarmLastSelectedApplication',
CONFIG_LAST_SELECTED_APPLICATION = 'configLastSelectedApplication',
}
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
export * from './ErrorBoundary';
export * from './ErrorToast';
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
export * from './Optional';
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
export * from './accordion';
export * from './alert';
export * from './alert-dialog';
export * from './badge';
export * from './button';
export * from './button-group';
Expand All @@ -16,6 +17,7 @@ export * from './label';
export * from './popover';
export * from './radio-group';
export * from './resizable';
export * from './scroll-area';
export * from './select';
export * from './separator';
export * from './sheet';
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ export const AlarmPage = ({
const { t } = useTranslation();
const [selectedApplication, setSelectedApplication] = useLocalStorage<
ApplicationType | undefined
>(APP_SETTING_KEYS.ALARM_LAST_SELECTED_APPLICATION, undefined);
>(APP_SETTING_KEYS.CONFIG_LAST_SELECTED_APPLICATION, undefined);
const [isEditable, setEditable] = React.useState(false);
const [currentDeletingTarget, setCurrentDeletingTarget] =
React.useState<AlarmRule.AlarmRuleData>();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export const WebhookPage = ({ ApplicationList = ApplicationCombinedList }: Webho
const { t } = useTranslation();
const [selectedApplication, setSelectedApplication] = useLocalStorage<
ApplicationType | undefined
>(APP_SETTING_KEYS.ALARM_LAST_SELECTED_APPLICATION, undefined);
>(APP_SETTING_KEYS.CONFIG_LAST_SELECTED_APPLICATION, undefined);
const [isEditable, setEditable] = React.useState(false);
const [currentDeletingTarget, setCurrentDeletingTarget] = React.useState<Webhook.WebhookData>();
const [currentTargetWebhookData, setCurrentTargetWebhookData] =
Expand Down
Loading