Selaa lähdekoodia

fix(timpicker): another name change to make quick ranges nameing more consistent, fixes #3465

Torkel Ödegaard 10 vuotta sitten
vanhempi
commit
6ea00a4f7c

+ 1 - 1
public/app/core/utils/rangeutil.ts

@@ -19,7 +19,7 @@ var rangeOptions = [
   { from: 'now/d',    to: 'now/d',    display: 'Today',                 section: 2 },
   { from: 'now/d',    to: 'now',      display: 'Today so far',          section: 2 },
   { from: 'now/w',    to: 'now/w',    display: 'This week',             section: 2 },
-  { from: 'now/w',    to: 'now',      display: 'Week so far',           section: 2 },
+  { from: 'now/w',    to: 'now',      display: 'This week so far',           section: 2 },
   { from: 'now/M',    to: 'now/M',    display: 'This month',            section: 2 },
   { from: 'now/y',    to: 'now/y',    display: 'This year',             section: 2 },
 

+ 1 - 1
public/test/core/utils/rangeutil_specs.ts

@@ -46,7 +46,7 @@ describe("rangeUtil", () => {
 
     it('should handle now/w', () => {
       var info = rangeUtil.describeTextRange('now/w');
-      expect(info.display).to.be('Week so far');
+      expect(info.display).to.be('This week so far');
     });
   });