@@ -1210,7 +1210,7 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12101210 },
12111211 execute: (comp, values) => {
12121212 const viewType = values[0] as string || "timeGridWeek"; // Default to "timeGridWeek" if undefined
1213- const viewKey = comp.children.licenseKey.getView() === "" ? 'defaultFreeView ' : 'defaultPremiumView ';
1213+ const viewKey = comp.children.licenseKey.getView() === "" ? 'currentFreeView ' : 'currentPremiumView ';
12141214 comp.children[viewKey].dispatchChangeValueAction(viewType);
12151215 }
12161216 },*/
@@ -1223,8 +1223,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12231223 params : [ { name : "viewType" , type : "string" } ] ,
12241224 } ,
12251225 execute : ( comp ) => {
1226- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1227- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "resourceTimeGridDay" ) ;
1226+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1227+ comp . children [ viewKey ] . dispatchChangeValueAction ( "resourceTimeGridDay" ) ;
12281228 }
12291229 } ,
12301230 {
@@ -1234,8 +1234,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12341234 params : [ { name : "viewType" , type : "string" } ] ,
12351235 } ,
12361236 execute : ( comp ) => {
1237- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1238- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "resourceTimelineDay" ) ;
1237+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1238+ comp . children [ viewKey ] . dispatchChangeValueAction ( "resourceTimelineDay" ) ;
12391239 }
12401240 } ,
12411241 {
@@ -1245,8 +1245,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12451245 params : [ { name : "viewType" , type : "string" } ] ,
12461246 } ,
12471247 execute : ( comp ) => {
1248- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1249- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "dayGridWeek" ) ;
1248+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1249+ comp . children [ viewKey ] . dispatchChangeValueAction ( "dayGridWeek" ) ;
12501250 }
12511251 } ,
12521252 {
@@ -1256,8 +1256,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12561256 params : [ { name : "viewType" , type : "string" } ] ,
12571257 } ,
12581258 execute : ( comp ) => {
1259- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1260- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "timeGridWeek" ) ;
1259+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1260+ comp . children [ viewKey ] . dispatchChangeValueAction ( "timeGridWeek" ) ;
12611261 }
12621262 } ,
12631263 {
@@ -1267,8 +1267,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12671267 params : [ { name : "viewType" , type : "string" } ] ,
12681268 } ,
12691269 execute : ( comp ) => {
1270- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1271- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "timeGridDay" ) ;
1270+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1271+ comp . children [ viewKey ] . dispatchChangeValueAction ( "timeGridDay" ) ;
12721272 }
12731273 } ,
12741274 {
@@ -1278,8 +1278,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12781278 params : [ { name : "viewType" , type : "string" } ] ,
12791279 } ,
12801280 execute : ( comp ) => {
1281- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1282- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "dayGridDay" ) ;
1281+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1282+ comp . children [ viewKey ] . dispatchChangeValueAction ( "dayGridDay" ) ;
12831283 }
12841284 } ,
12851285 {
@@ -1289,8 +1289,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
12891289 params : [ { name : "viewType" , type : "string" } ] ,
12901290 } ,
12911291 execute : ( comp ) => {
1292- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1293- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "listWeek" ) ;
1292+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1293+ comp . children [ viewKey ] . dispatchChangeValueAction ( "listWeek" ) ;
12941294 }
12951295 } ,
12961296 {
@@ -1300,8 +1300,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
13001300 params : [ { name : "viewType" , type : "string" } ] ,
13011301 } ,
13021302 execute : ( comp ) => {
1303- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1304- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "dayGridMonth" ) ;
1303+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1304+ comp . children [ viewKey ] . dispatchChangeValueAction ( "dayGridMonth" ) ;
13051305 }
13061306 } ,
13071307 {
@@ -1311,8 +1311,8 @@ let CalendarComp = withMethodExposing(TmpCalendarComp, [
13111311 params : [ { name : "viewType" , type : "string" } ] ,
13121312 } ,
13131313 execute : ( comp ) => {
1314- const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'defaultFreeView ' : 'defaultPremiumView ' ;
1315- comp . children [ " viewKey" ] . dispatchChangeValueAction ( "multiMonthYear" ) ;
1314+ const viewKey = comp . children . licenseKey . getView ( ) === "" ? 'currentFreeView ' : 'currentPremiumView ' ;
1315+ comp . children [ viewKey ] . dispatchChangeValueAction ( "multiMonthYear" ) ;
13161316 }
13171317 } ,
13181318 {
0 commit comments