Skip to content

Commit

Permalink
Task: display history items ttl message (#733)
Browse files Browse the repository at this point in the history
  • Loading branch information
thewahome committed Oct 13, 2020
1 parent ca4027c commit c8e998c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
10 changes: 8 additions & 2 deletions src/app/views/sidebar/history/History.tsx
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import {
ContextualMenuItemType, DefaultButton, DetailsList, DetailsRow, Dialog,
DialogFooter, DialogType, getId, getTheme, IColumn, IconButton,
Label, MessageBarType, PrimaryButton, SearchBox, SelectionMode, styled, TooltipHost
Label, MessageBar, MessageBarType, PrimaryButton, SearchBox, SelectionMode, styled, TooltipHost
} from 'office-ui-fabric-react';
import React, { Component } from 'react';
import { FormattedMessage, injectIntl } from 'react-intl';
import { connect } from 'react-redux';
import { bindActionCreators, Dispatch } from 'redux';
import { geLocale } from '../../../../appLocale';

import { telemetry } from '../../../../telemetry';
import { BUTTON_CLICK_EVENT, LISTITEM_CLICK_EVENT } from '../../../../telemetry/event-types';
Expand Down Expand Up @@ -424,7 +425,7 @@ export class History extends Component<IHistoryProps, any> {
}

private trackHistoryItemEvent = (eventName: string, componentName: string,
query: IHistoryItem) => {
query: IHistoryItem) => {
telemetry.trackEvent(
eventName,
{
Expand Down Expand Up @@ -464,6 +465,11 @@ export class History extends Component<IHistoryProps, any> {
styles={{ field: { paddingLeft: 10 } }}
/>
<hr />
<MessageBar messageBarType={MessageBarType.info}
isMultiline={true}
dismissButtonAriaLabel='Close'>
<FormattedMessage id='Your history includes queries made in the last 30 days' />.
</MessageBar>
<DetailsList
className={classes.queryList}
onRenderItemColumn={this.renderItemColumn}
Expand Down
3 changes: 2 additions & 1 deletion src/messages/GE.json
Original file line number Diff line number Diff line change
Expand Up @@ -318,5 +318,6 @@
"Row checkbox": "Row checkbox",
"Administrator permission": "Admin of the tenant needs to authorize first before you can consent to this permission",
"Adaptive Cards designer": "Adaptive Cards designer.",
"Click Run Query button above to fetch Adaptive Card": "Click Run Query button above to fetch Adaptive Card."
"Click Run Query button above to fetch Adaptive Card": "Click Run Query button above to fetch Adaptive Card.",
"Your history includes queries made in the last 30 days": "Your history includes queries made in the last 30 days"
}

0 comments on commit c8e998c

Please sign in to comment.