diff --git a/ui/client/assets/icons/InlinedSvgs.js b/ui/client/assets/icons/InlinedSvgs.js index 9d3f5011438..0a821155ce8 100644 --- a/ui/client/assets/icons/InlinedSvgs.js +++ b/ui/client/assets/icons/InlinedSvgs.js @@ -60,4 +60,6 @@ InlinedSvgs.buttonCounts = `` -InlinedSvgs.compareButton = `` \ No newline at end of file +InlinedSvgs.compareButton = `` + +InlinedSvgs.pdf = `` \ No newline at end of file diff --git a/ui/client/assets/img/book.svg b/ui/client/assets/img/book.svg deleted file mode 100644 index add694e9eeb..00000000000 --- a/ui/client/assets/img/book.svg +++ /dev/null @@ -1,4 +0,0 @@ - - \ No newline at end of file diff --git a/ui/client/assets/img/documentation.svg b/ui/client/assets/img/documentation.svg new file mode 100644 index 00000000000..c0da51b6183 --- /dev/null +++ b/ui/client/assets/img/documentation.svg @@ -0,0 +1,8 @@ + \ No newline at end of file diff --git a/ui/client/common/DateUtils.js b/ui/client/common/DateUtils.js index 9f4d9703532..56ed98ae17c 100644 --- a/ui/client/common/DateUtils.js +++ b/ui/client/common/DateUtils.js @@ -1,10 +1,14 @@ +import Moment from "moment"; +import {displayDateFormat} from "../config"; -export default { +class DateUtils { + formatRelatively = (dateTimeString) => { + return Moment(dateTimeString).calendar(null, {sameElse: displayDateFormat}) + } + formatAbsolutely = (dateTimeString) => { + return dateTimeString.replace("T", " | ").substring(0, 18) + } +} - format(dateTimeString) { - //TODO: something better? - return dateTimeString.replace("T", " | ").substring(0, 18) - } - -} \ No newline at end of file +export default new DateUtils() \ No newline at end of file diff --git a/ui/client/common/ProcessUtils.js b/ui/client/common/ProcessUtils.js index 893fb02861d..3d47a8befe7 100644 --- a/ui/client/common/ProcessUtils.js +++ b/ui/client/common/ProcessUtils.js @@ -9,6 +9,11 @@ class ProcessUtils { return !_.isEmpty(fetchedProcessDetails) ? _.isEqual(fetchedProcessDetails.json, processToDisplay) : true } + canExport = (state) => { + const fetchedProcessDetails = state.graphReducer.fetchedProcessDetails; + return _.isEmpty(fetchedProcessDetails) ? false : !_.isEmpty(fetchedProcessDetails.json.nodes) + } + processDisplayName = (processId, versionId) => { return `${processId}:v${versionId}` } diff --git a/ui/client/components/ProcessAttachments.js b/ui/client/components/ProcessAttachments.js index b3371fcad5b..8bec66447f9 100644 --- a/ui/client/components/ProcessAttachments.js +++ b/ui/client/components/ProcessAttachments.js @@ -50,7 +50,7 @@ export class ProcessAttachments_ extends React.Component {
{ProcessUtils.processDisplayName(attachment.processId, attachment.processVersionId)}
{attachment.fileName}
diff --git a/ui/client/components/ProcessComments.js b/ui/client/components/ProcessComments.js index 8e13ed49657..6a5e8e2e827 100644 --- a/ui/client/components/ProcessComments.js +++ b/ui/client/components/ProcessComments.js @@ -51,7 +51,7 @@ class ProcessComments extends React.Component { return (