diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 18:08:57 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-01-30 18:08:57 +0000 |
commit | d8121cb00b8bbd281d7362902590b110639bdeba (patch) | |
tree | 0a0f71b247b232773a46732d9f74aa3cfed0ef1a /app/assets/javascripts/registry/settings/store/getters.js | |
parent | 536aa3a1f4b96abc4ca34489bf2cbe503afcded7 (diff) | |
download | gitlab-ce-d8121cb00b8bbd281d7362902590b110639bdeba.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'app/assets/javascripts/registry/settings/store/getters.js')
-rw-r--r-- | app/assets/javascripts/registry/settings/store/getters.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/assets/javascripts/registry/settings/store/getters.js b/app/assets/javascripts/registry/settings/store/getters.js index fc32a9f08e4..cd6392bd0cc 100644 --- a/app/assets/javascripts/registry/settings/store/getters.js +++ b/app/assets/javascripts/registry/settings/store/getters.js @@ -1,3 +1,4 @@ +import { isEqual } from 'lodash'; import { findDefaultOption } from '../utils'; export const getCadence = state => @@ -6,3 +7,4 @@ export const getKeepN = state => state.settings.keep_n || findDefaultOption(state.formOptions.keepN); export const getOlderThan = state => state.settings.older_than || findDefaultOption(state.formOptions.olderThan); +export const getIsEdited = state => !isEqual(state.original, state.settings); |