aboutsummaryrefslogtreecommitdiffstats
path: root/server/sonar-web
diff options
context:
space:
mode:
authorStas Vilchik <stas.vilchik@sonarsource.com>2017-09-22 11:05:50 +0200
committerStas Vilchik <stas.vilchik@sonarsource.com>2017-09-25 13:40:46 +0200
commit3882435f10d70ef47f4b189b9d032119335e5130 (patch)
tree2c6adc80f2f5816055749e21e63d44cdeaceaa17 /server/sonar-web
parentc2332deafa0d57b39a0cd8f416203cc77c9df22a (diff)
downloadsonarqube-3882435f10d70ef47f4b189b9d032119335e5130.tar.gz
sonarqube-3882435f10d70ef47f4b189b9d032119335e5130.zip
fix creation date facet on issues page
Diffstat (limited to 'server/sonar-web')
-rw-r--r--server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js4
-rw-r--r--server/sonar-web/src/main/less/components/search-navigator.less4
2 files changed, 7 insertions, 1 deletions
diff --git a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
index 721c9c75e88..78edc628f71 100644
--- a/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
+++ b/server/sonar-web/src/main/js/apps/issues/sidebar/CreationDateFacet.js
@@ -106,7 +106,7 @@ export default class CreationDateFacet extends React.PureComponent {
createdAt: undefined,
createdInLast: undefined,
sinceLeakPeriod: undefined,
- [property]: toShortNotSoISOString(parseDate(value))
+ [property]: value ? toShortNotSoISOString(parseDate(value)) : undefined
});
};
@@ -199,12 +199,14 @@ export default class CreationDateFacet extends React.PureComponent {
<div className="search-navigator-date-facet-selection">
<DateInput
className="search-navigator-date-facet-selection-dropdown-left"
+ inputClassName="search-navigator-date-facet-selection-input"
onChange={this.handlePeriodChangeAfter}
placeholder={translate('from')}
value={createdAfter ? toShortNotSoISOString(createdAfter) : undefined}
/>
<DateInput
className="search-navigator-date-facet-selection-dropdown-right"
+ inputClassName="search-navigator-date-facet-selection-input"
onChange={this.handlePeriodChangeBefore}
placeholder={translate('to')}
value={createdBefore ? toShortNotSoISOString(createdBefore) : undefined}
diff --git a/server/sonar-web/src/main/less/components/search-navigator.less b/server/sonar-web/src/main/less/components/search-navigator.less
index e3a5bbd9d06..268629f8e3c 100644
--- a/server/sonar-web/src/main/less/components/search-navigator.less
+++ b/server/sonar-web/src/main/less/components/search-navigator.less
@@ -516,6 +516,10 @@
font-size: @smallFontSize;
}
+.search-navigator-date-facet-selection-input {
+ width: 115px !important;
+}
+
.search-navigator-date-facet-selection-dropdown-left {
float: left;
.link-no-underline;