Commit ad3ceb8e authored by Nicolas Frandeboeuf's avatar Nicolas Frandeboeuf
Browse files

Remove april's fool

parent d468231c
Pipeline #15555 passed with stage
in 2 minutes and 21 seconds
......@@ -8,22 +8,6 @@ import { get, actions } from '../../store';
import DatePicker from '../ui/date-picker';
import AmountInput from '../ui/amount-input';
let Special = () => {
let d = new Date();
if (d.getMonth() !== 3 || d.getDate() !== 1 || Math.random() < 0.5)
return null;
let onClick = e => {
alert($t('client.search.special3'));
e.preventDefault();
};
return (<div className="alert alert-info">
{ $t('client.search.special') }
<button onClick={ onClick }>{ $t('client.search.special2') }</button>
</div>);
};
class SearchComponent extends React.Component {
constructor(props) {
super(props);
......@@ -125,8 +109,6 @@ class SearchComponent extends React.Component {
className="panel-body transition-expand"
ref={ searchFormCb }>
<Special />
<div className="form-group">
<label htmlFor="keywords">
{ $t('client.search.keywords') }
......
......@@ -109,3 +109,8 @@ export function normalizeVersion(version) {
}
export const MIN_WEBOOB_VERSION = '1.2';
export function isAprilFirstDay() {
let d = new Date();
return d.getMonth() === 3 && d.getDate() === 1;
}
......@@ -164,10 +164,7 @@ module.exports = {
date_low: 'Date: ',
clear: 'Clear',
clearAndClose: 'Clear and close',
title: 'Search',
special: `Because of suspicious actions of international spying agencies happening during the previous US presidential election, the Kresus team has decided to help the United States of 'Merica. From now on, all your bank transactions will be uploaded to the CIA, NSA and Disneyland offices. To learn more about this,`,
special2: 'click here',
special3: 'Happy April 1st!'
title: 'Search'
},
settings: {
......
......@@ -164,10 +164,7 @@ module.exports = {
date_low: 'Date : ',
clear: 'Vider',
clearAndClose: 'Vider & fermer',
title: 'Recherche',
special: `En raison de la proximité de l'élection présidentielle française, et de la suspicion très forte de comportements financiers douteux de la part de plusieurs candidats, il a été décidé que Kresus aiderait la justice et les médias à effectuer leur travail. Pour cela, toutes vos opérations bancaires seront transférées directement à Mediapart, au Canard Enchaîné et au Journal de Mickey. Pour en savoir plus,`,
special2: 'cliquez ici',
special3: `Poisson d'avril !`
title: 'Recherche'
},
settings: {
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment