Skip to content

Commit 416dddf

Browse files
committed
refactor(QDate): rename setViewTo() to setCalendarTo() -- more appropriate name
1 parent b8d8a51 commit 416dddf

File tree

2 files changed

+20
-20
lines changed

2 files changed

+20
-20
lines changed

ui/src/components/date/QDate.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -686,7 +686,7 @@ export default Vue.extend({
686686
methods: {
687687
setToday () {
688688
this.__toggleDate(this.today, this.__getMonthHash(this.today))
689-
this.setViewTo(this.today.year, this.today.month)
689+
this.setCalendarTo(this.today.year, this.today.month)
690690
},
691691

692692
setView (view) {
@@ -703,7 +703,7 @@ export default Vue.extend({
703703
}
704704
},
705705

706-
setViewTo (year, month) {
706+
setCalendarTo (year, month) {
707707
this.view = 'Calendar'
708708
this.__updateViewModel(year, month)
709709
},
@@ -726,7 +726,7 @@ export default Vue.extend({
726726
finalHash: this.__getDayHash(final)
727727
}
728728

729-
this.setViewTo(init.year, init.month)
729+
this.setCalendarTo(init.year, init.month)
730730
},
731731

732732
__getMask () {

ui/src/components/date/QDate.json

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -363,23 +363,6 @@
363363
"addedIn": "v1.1.7"
364364
},
365365

366-
"setViewTo": {
367-
"desc": "Change current year and month of the Calendar view; It gets corrected if using navigation-min/max-year-month and sets the current view to Calendar",
368-
"params": {
369-
"year": {
370-
"type": "Number",
371-
"desc": "The year",
372-
"__exemption": [ "examples" ]
373-
},
374-
"month": {
375-
"type": "Number",
376-
"desc": "The month",
377-
"__exemption": [ "examples" ]
378-
}
379-
},
380-
"addedIn": "v1.13.0"
381-
},
382-
383366
"offsetCalendar": {
384367
"desc": "Increment or decrement calendar view's month or year",
385368
"params": {
@@ -397,6 +380,23 @@
397380
"addedIn": "v1.1.7"
398381
},
399382

383+
"setCalendarTo": {
384+
"desc": "Change current year and month of the Calendar view; It gets corrected if using navigation-min/max-year-month and sets the current view to Calendar",
385+
"params": {
386+
"year": {
387+
"type": "Number",
388+
"desc": "The year",
389+
"__exemption": [ "examples" ]
390+
},
391+
"month": {
392+
"type": "Number",
393+
"desc": "The month",
394+
"__exemption": [ "examples" ]
395+
}
396+
},
397+
"addedIn": "v1.13.0"
398+
},
399+
400400
"setEditingRange": {
401401
"desc": "Configure the current editing range",
402402
"params": {

0 commit comments

Comments
 (0)