| Topic | Presenter | Summary | Duration |
| ------------ | ---------- | ------------------------------------------------------- | -------- |
| App Settings | Brandon M. | This video shows a high level overview of App Settings. | 15:09 |00:00:07.340 --> 00:00:09.518 Today we're going to be talking00:00:09.518 --> 00:00:11.666 about app settings. What they are?00:00:11.666 --> 00:00:14.332 Why we use them, how to create them,00:00:14.332 --> 00:00:17.110 where to find them and just to kind00:00:17.110 --> 00:00:19.986 of give you an overview and app00:00:19.986 --> 00:00:22.506 setting is just something that.00:00:22.510 --> 00:00:25.018 We usually trigger.00:00:25.020 --> 00:00:26.848 It could be anything.00:00:26.848 --> 00:00:30.550 We mostly use them as true false UM,00:00:30.550 --> 00:00:34.246 however. What we will do is,00:00:34.250 --> 00:00:36.266 you know at times you can.00:00:36.270 --> 00:00:38.515 You can assign an actual00:00:38.515 --> 00:00:41.160 value to them as well so.00:00:41.160 --> 00:00:45.903 You know, if you have a like FedEx provider.00:00:45.910 --> 00:00:47.886 Credentials a UPS provider,00:00:47.886 --> 00:00:49.862 credentials things of that00:00:49.862 --> 00:00:52.560 nature or held in app settings.00:00:52.560 --> 00:00:54.317 You can have an app setting be,00:00:54.320 --> 00:00:57.400 UM, you know, like a like a rate,00:00:57.400 --> 00:01:00.136 a percentage or which I guess00:01:00.136 --> 00:01:02.630 would be a decimal value.00:01:02.630 --> 00:01:03.466 That a client could,00:01:03.466 --> 00:01:05.362 you know you just you just put it in00:01:05.362 --> 00:01:06.992 the app settings and then you only have00:01:06.992 --> 00:01:08.656 to change it in one place instead of,00:01:08.660 --> 00:01:10.436 you know if the client tells you that00:01:10.436 --> 00:01:12.147 they're going to have some kind of custom.00:01:12.150 --> 00:01:14.034 I mean we have code and00:01:14.034 --> 00:01:15.290 schema for this already,00:01:15.290 --> 00:01:17.426 but if they wanted to tell you that.00:01:17.430 --> 00:01:20.190 You know there's some custom situation,00:01:20.190 --> 00:01:22.458 or for a custom shipping provider that00:01:22.458 --> 00:01:24.513 they're going to change the percentage00:01:24.513 --> 00:01:26.553 off and that they're going to.00:01:26.560 --> 00:01:29.416 You know it'll be 10% or 15%.00:01:29.416 --> 00:01:30.964 It's multiple ways to do that,00:01:30.970 --> 00:01:32.842 and and and honestly you can do that00:01:32.842 --> 00:01:34.849 using the database in the admin portal,00:01:34.850 --> 00:01:36.383 but one way you could also do00:01:36.383 --> 00:01:38.370 it is by adding that as an app,00:01:38.370 --> 00:01:39.276 setting that value,00:01:39.276 --> 00:01:41.390 and then when the client says hey00:01:41.453 --> 00:01:43.280 we need to change that you know.00:01:45.610 --> 00:01:47.470 We can either, you know,00:01:47.470 --> 00:01:49.070 show them how to change an app setting,00:01:49.070 --> 00:01:53.094 or we can just do it for them.00:01:53.100 --> 00:01:54.927 Depending on how frequently they change it,00:01:54.930 --> 00:01:55.752 and then when you change it00:01:55.752 --> 00:01:56.590 once in the app setting,00:01:56.590 --> 00:01:57.610 it's changed everywhere else,00:01:57.610 --> 00:01:59.140 but mostly for the purpose of00:01:59.183 --> 00:02:00.605 this we're going to be mostly00:02:00.605 --> 00:02:01.553 talking about true false.00:02:03.690 --> 00:02:05.094 And so essentially what00:02:05.094 --> 00:02:06.849 will happen is you know.00:02:06.850 --> 00:02:08.762 So you built Seth and it works a00:02:08.762 --> 00:02:10.770 certain way and then a client comes in.00:02:10.770 --> 00:02:11.933 And in this case they say, hey,00:02:11.933 --> 00:02:13.940 I want I want people to be able to00:02:14.006 --> 00:02:16.127 enter a one time address in checkout.00:02:16.130 --> 00:02:17.908 So if you think about the checkout00:02:17.908 --> 00:02:19.929 process the you can add an address00:02:19.929 --> 00:02:21.429 during the checkout process right?00:02:21.430 --> 00:02:23.554 And add a box set functionality00:02:23.554 --> 00:02:26.010 adds that to the address book.00:02:26.010 --> 00:02:27.276 But at some point a client00:02:27.276 --> 00:02:28.361 came along and said, hey,00:02:28.361 --> 00:02:30.289 I want people to be able to enter00:02:30.289 --> 00:02:32.160 a one time shipping address,00:02:32.160 --> 00:02:33.276 but I don't want to save00:02:33.276 --> 00:02:34.020 to their address book.00:02:34.020 --> 00:02:35.924 So we thought you know what another00:02:35.924 --> 00:02:37.459 client might want that someday.00:02:37.460 --> 00:02:39.672 So let's create this app setting here00:02:39.672 --> 00:02:42.029 that will call add addresses to book.00:02:42.030 --> 00:02:43.830 The default value is true,00:02:43.830 --> 00:02:45.540 and that's because most clients will00:02:45.540 --> 00:02:47.798 want to add it to the address book00:02:47.800 --> 00:02:50.355 and it depends on this app setting,00:02:50.360 --> 00:02:51.590 which is just simply the00:02:51.590 --> 00:02:52.574 address book being enabled.00:02:52.580 --> 00:02:54.428 Which basically means hey,00:02:54.428 --> 00:02:57.710 this app setting will not be true.00:02:57.710 --> 00:02:58.120 Uhm,00:02:58.120 --> 00:03:02.370 this this app setting will not be a you know,00:03:02.370 --> 00:03:04.662 calculated for lack of a better00:03:04.662 --> 00:03:06.190 word or recognized unless00:03:06.258 --> 00:03:07.798 this one is is enabled.00:03:10.070 --> 00:03:11.911 So, and obviously that makes sense because00:03:11.911 --> 00:03:14.064 you can't add addresses to an address book00:03:14.064 --> 00:03:17.160 if the address book doesn't exist, so.00:03:17.160 --> 00:03:20.074 Uhm? So when you go to add it,00:03:20.080 --> 00:03:21.454 you you literally would just do00:03:21.454 --> 00:03:23.298 this and so you know the standard.00:03:23.300 --> 00:03:24.854 And Sev is usually just a copy,00:03:24.860 --> 00:03:25.700 something that already exists.00:03:25.700 --> 00:03:26.540 So you copy this,00:03:26.540 --> 00:03:28.976 paste it below, change the name.00:03:28.980 --> 00:03:31.248 This key which is going to be in the00:03:31.248 --> 00:03:33.138 appsettings config file will go show here.00:03:33.140 --> 00:03:35.388 In a minute you want to00:03:35.388 --> 00:03:36.518 give it a default value.00:03:36.520 --> 00:03:38.074 Normally when you're creating a new00:03:38.074 --> 00:03:39.798 one the default value will be false.00:03:39.800 --> 00:03:42.528 Just because you're probably00:03:42.528 --> 00:03:45.256 you're probably modifying something00:03:45.256 --> 00:03:47.570 that you know would be limited00:03:47.570 --> 00:03:49.200 functionality used by the client.00:03:49.200 --> 00:03:51.350 You're adding it for so dumb,00:03:51.350 --> 00:03:53.500 but it doesn't really matter.00:03:53.500 --> 00:03:55.876 UM, and then it you know if it depends00:03:55.876 --> 00:03:58.277 on another app setting you do that.00:03:58.280 --> 00:03:59.936 Public static Bool purchase00:03:59.936 --> 00:04:01.178 addresses to book,00:04:01.180 --> 00:04:03.126 so you give it a name and00:04:03.126 --> 00:04:04.726 you'll notice like this.00:04:04.726 --> 00:04:07.790 This name purchased addresses.00:04:07.790 --> 00:04:09.950 The book is a little bit different than this.00:04:09.950 --> 00:04:12.566 It doesn't really matter what you call these.00:04:14.610 --> 00:04:16.260 And then you followed the00:04:16.260 --> 00:04:17.910 git and private set up.00:04:17.910 --> 00:04:19.938 In this case, you're checking for00:04:19.938 --> 00:04:21.850 an address book being enabled,00:04:21.850 --> 00:04:23.474 but if you weren't, it would look00:04:23.474 --> 00:04:25.599 like if it didn't depend on anything,00:04:25.600 --> 00:04:26.986 it would just look like this.00:04:26.990 --> 00:04:29.496 Try get out bulls value and then00:04:29.496 --> 00:04:31.303 whatever the default value is00:04:31.303 --> 00:04:33.613 would be the fall back value there,00:04:33.620 --> 00:04:35.468 which basically says hey try to go find00:04:35.468 --> 00:04:37.380 this app setting if you can't find it,00:04:37.380 --> 00:04:40.990 just make it false. Uhm?00:04:40.990 --> 00:04:44.070 And, uh, so that's essentially how you00:04:44.070 --> 00:04:47.756 would create an app setting on the back end.00:04:47.760 --> 00:04:50.388 And then you can use this.00:04:50.390 --> 00:04:52.190 You know, if you just want it on the00:04:52.190 --> 00:04:54.145 back end you're you're pretty much done.00:04:54.150 --> 00:04:55.788 At that point you would have00:04:55.788 --> 00:04:57.362 to build the solution.00:04:57.362 --> 00:04:59.917 And once it builds you,00:04:59.920 --> 00:05:02.902 you would be looking for, you know you.00:05:02.902 --> 00:05:03.958 You would basically be.00:05:03.960 --> 00:05:05.456 This is how you would call it right?00:05:05.460 --> 00:05:07.720 So it be safe config.00:05:07.720 --> 00:05:09.519 It's part of the Self Config dictionary,00:05:09.520 --> 00:05:15.144 so this is in the 00 registry loader00:05:15.150 --> 00:05:16.416 where we're actually at a set.00:05:16.420 --> 00:05:18.820 Props F config dot properties one00:05:18.820 --> 00:05:20.588 and you can call it and you could00:05:20.588 --> 00:05:22.460 see this happening in other places,00:05:22.460 --> 00:05:25.088 but it'll be like.00:05:25.090 --> 00:05:27.844 If Ceph config dot purchase add00:05:27.844 --> 00:05:30.550 addresses to book you know and,00:05:30.550 --> 00:05:34.650 and that's sort of how you would call a UM.00:05:34.650 --> 00:05:36.228 App setting on the back end,00:05:36.230 --> 00:05:41.840 and so if you wanted to.00:05:41.840 --> 00:05:43.510 Uhm?00:05:43.510 --> 00:05:46.705 In in, that would only that that would be.00:05:46.710 --> 00:05:47.865 You know if you're only going to00:05:47.865 --> 00:05:49.330 use an app sitting on the back end,00:05:49.330 --> 00:05:52.506 that's sort of how you would do it.00:05:52.510 --> 00:05:57.778 Can show an example here of.00:05:57.780 --> 00:06:02.270 One that is in a dumb.00:06:04.620 --> 00:06:10.060 Scheduled task asks.00:06:10.060 --> 00:06:14.099 Cool UM and then down in here.00:06:25.220 --> 00:06:26.935 It is so I had to create00:06:26.935 --> 00:06:28.270 this app setting for this.00:06:28.270 --> 00:06:31.036 We're basically said if Seth Config00:06:31.036 --> 00:06:33.500 dictionary dot membership levels enabled,00:06:33.500 --> 00:06:35.276 so this is how you would call an00:06:35.276 --> 00:06:36.831 app setting if it only existed on00:06:36.831 --> 00:06:38.745 the back end or even if it even if00:06:38.745 --> 00:06:40.080 it does exist on the front end.00:06:40.080 --> 00:06:41.320 If you need to use it on the back end,00:06:41.320 --> 00:06:42.450 this is how you is,00:06:42.450 --> 00:06:43.890 how you access it's F config,00:06:43.890 --> 00:06:47.760 dictionary dot membership levels enabled.00:06:47.760 --> 00:06:50.576 So that is how an app setting like00:06:50.576 --> 00:06:53.918 a new app setting would be created.00:06:53.920 --> 00:06:55.872 If you want to look at if you00:06:55.872 --> 00:06:57.880 want to enable an app setting,00:06:57.880 --> 00:07:02.840 you are going to go to your sorry wrong00:07:02.840 --> 00:07:06.520 file to the app settings dot config file,00:07:06.520 --> 00:07:09.530 which will be in the solution items.00:07:09.530 --> 00:07:12.050 But it also opens with the00:07:12.050 --> 00:07:14.754 solution items open with both the00:07:14.754 --> 00:07:17.104 workspace and the the solution.00:07:17.110 --> 00:07:19.566 I prefer to view this in vscode because00:07:19.566 --> 00:07:21.289 Visual Studio is a little bulky.00:07:21.290 --> 00:07:24.100 UM, so.00:07:24.100 --> 00:07:26.347 Here where it says like feature sets,00:07:26.350 --> 00:07:28.502 these are all the app settings that we00:07:28.502 --> 00:07:30.618 added for this project that were not,00:07:30.620 --> 00:07:31.338 you know,00:07:31.338 --> 00:07:33.851 enabled by default or maybe were enabled00:07:33.851 --> 00:07:36.658 by default that we wanted to turn off.00:07:36.660 --> 00:07:39.252 And so you add key clarity dot feature00:07:39.252 --> 00:07:41.999 set to stores blah blah blah value.00:07:42.000 --> 00:07:42.303 True.00:07:42.303 --> 00:07:44.727 So if you go back to that example00:07:44.727 --> 00:07:45.829 we looked at.00:07:45.830 --> 00:07:47.906 This is the key right here,00:07:47.910 --> 00:07:49.764 so clarity dot purchase DOT addresses00:07:49.764 --> 00:07:51.810 the book now for this project.00:07:51.810 --> 00:07:54.070 That one is not enabled.00:07:54.070 --> 00:07:56.626 But basically you would copy that,00:07:56.630 --> 00:07:58.982 paste it over this and then put00:07:58.982 --> 00:08:01.216 whatever value you wanted and then00:08:01.216 --> 00:08:03.146 when the registry loader runs,00:08:03.150 --> 00:08:04.764 which is you know every time00:08:04.764 --> 00:08:06.070 the the site spins up.00:08:06.070 --> 00:08:09.438 Basically it goes and gets the app settings.00:08:09.440 --> 00:08:09.918 Uh,00:08:09.918 --> 00:08:12.786 looks for them in this file00:08:12.786 --> 00:08:15.000 by this key right?00:08:15.000 --> 00:08:16.566 Which is why you put Appsettings00:08:16.566 --> 00:08:18.502 key here and then it it.00:08:18.502 --> 00:08:21.498 If it's loads you know if it loads00:08:21.498 --> 00:08:24.666 from this file it will come over here00:08:24.752 --> 00:08:27.466 and look or I'm sorry it will look00:08:27.466 --> 00:08:30.117 in this file and grab the value and00:08:30.117 --> 00:08:33.339 then basically that's where this git00:08:33.340 --> 00:08:35.944 try git and then private set comes00:08:35.944 --> 00:08:38.784 in and so that's how those are set.00:08:38.790 --> 00:08:40.473 If you want to, if you need to access00:08:40.473 --> 00:08:42.067 an app setting on the front end,00:08:42.070 --> 00:08:44.200 you still have to do all this, right?00:08:44.200 --> 00:08:46.440 It has to exist back in these.00:08:46.440 --> 00:08:48.060 One of these properties files and00:08:48.060 --> 00:08:49.675 there's four of these because we00:08:49.675 --> 00:08:51.355 didn't want them to be too large.00:08:51.360 --> 00:08:53.040 Those properties 123 and four.00:08:53.040 --> 00:08:55.110 These are all just app settings,00:08:55.110 --> 00:08:56.844 and if you need to access00:08:56.844 --> 00:08:58.340 them on the front end,00:08:58.340 --> 00:09:00.196 the way that we do that is over00:09:00.196 --> 00:09:02.099 here in the self config shared,00:09:02.100 --> 00:09:04.680 which is right here?00:09:04.680 --> 00:09:07.308 And you'll notice when you come down in here.00:09:07.310 --> 00:09:07.700 UM,00:09:07.700 --> 00:09:08.090 it's,00:09:08.090 --> 00:09:10.820 it's mostly with this feature set and00:09:10.820 --> 00:09:14.016 you see that this is 360 lines up.00:09:14.016 --> 00:09:16.024 This get feature set.00:09:16.030 --> 00:09:18.788 These are all app settings in here.00:09:18.790 --> 00:09:21.996 Uhm, and you'll notice like this one00:09:21.996 --> 00:09:24.195 is appointments, UM, address book.00:09:24.195 --> 00:09:28.749 So you know if we were going to add that one.00:09:28.750 --> 00:09:30.700 This one says dashboard add00:09:30.700 --> 00:09:32.404 addresses to book, right?00:09:32.404 --> 00:09:35.608 So if we wanted to add.00:09:35.610 --> 00:09:38.420 Uhm, if we wanted to add the one that we00:09:38.494 --> 00:09:41.530 were looking at, which is right over here?00:09:41.530 --> 00:09:43.442 Uhm it is purchased.00:09:43.442 --> 00:09:45.354 Add addresses to book.00:09:45.360 --> 00:09:47.738 So what we would do is and it's00:09:47.738 --> 00:09:49.382 already comma so we'll just go00:09:49.382 --> 00:09:51.462 ahead and will copy this line and00:09:51.462 --> 00:09:55.056 we'll rename this and we'll say, UM.00:09:55.056 --> 00:10:00.944 Uh, and addresses during checkout, right?00:10:00.944 --> 00:10:03.072 And the cool thing about this is00:10:03.072 --> 00:10:04.911 or maybe not cool thing depending00:10:04.911 --> 00:10:07.795 on how you view it as you can just00:10:07.795 --> 00:10:09.575 name these all different things,00:10:09.580 --> 00:10:11.980 but they're going to be relaid and so00:10:11.980 --> 00:10:14.537 it needs to be that value right there.00:10:14.540 --> 00:10:16.960 OK, so basically what we're00:10:16.960 --> 00:10:19.541 what we're saying is, UM.00:10:19.541 --> 00:10:24.028 We're saying that this so we're creating.00:10:24.030 --> 00:10:25.615 We're creating the app setting00:10:25.615 --> 00:10:27.666 over here and we're tying that00:10:27.666 --> 00:10:29.790 to this app setting ski right?00:10:29.790 --> 00:10:31.894 And we can call this whatever we want.00:10:31.900 --> 00:10:35.960 And this file right here says OK00:10:35.960 --> 00:10:38.440 for this appsettings key, right?00:10:38.440 --> 00:10:40.792 We're going to grab that value00:10:40.792 --> 00:10:43.753 and we're going to take this this00:10:43.753 --> 00:10:46.369 name purchase add address to book.00:10:46.370 --> 00:10:48.330 And we are going to assign the00:10:48.330 --> 00:10:49.929 value of whatever this key is.00:10:49.930 --> 00:10:53.032 This key could be, you know, clarity dot.00:10:53.032 --> 00:10:55.544 I don't care dot really,00:10:55.544 --> 00:10:56.192 who cares,00:10:56.192 --> 00:10:58.893 and it's going to be tide to this00:10:58.893 --> 00:11:01.765 based on the fact that it's in this00:11:01.765 --> 00:11:03.473 appsettings key right here right?00:11:03.473 --> 00:11:05.664 And then when you come over here00:11:05.664 --> 00:11:07.535 into self config dot shared like00:11:07.535 --> 00:11:10.068 this is going to be the name of it.00:11:10.070 --> 00:11:12.104 This is going to be the name of this00:11:12.104 --> 00:11:13.846 specific app setting on the front end,00:11:13.850 --> 00:11:17.030 so like dashboard add addresses00:11:17.030 --> 00:11:21.443 to book right? That is going to.00:11:21.443 --> 00:11:22.850 That's the name of the app sitting00:11:22.895 --> 00:11:23.579 on the back end.00:11:23.580 --> 00:11:25.085 This is the name of the app00:11:25.085 --> 00:11:26.510 sitting on the front end now.00:11:26.510 --> 00:11:27.670 Full disclosure.00:11:27.670 --> 00:11:29.410 I mean, yeah,00:11:29.410 --> 00:11:31.769 they should probably be named the same.00:11:31.770 --> 00:11:35.776 It's lower case here because TypeScript, uhm?00:11:35.776 --> 00:11:39.041 That for you know JavaScript00:11:39.041 --> 00:11:41.410 properties tend to be.00:11:41.410 --> 00:11:43.948 A camel case while C sharp or Pascal case.00:11:43.950 --> 00:11:47.527 So it's fine that it's lower case.00:11:47.530 --> 00:11:49.362 We probably should have done a better job00:11:49.362 --> 00:11:51.337 and and there could be a reason that I'm00:11:51.337 --> 00:11:53.416 not aware of of just making these the same.00:11:53.420 --> 00:11:55.100 So if you're if you are creating one,00:11:55.100 --> 00:11:56.280 you can certainly do that00:11:56.280 --> 00:11:57.866 and we would just say, OK,00:11:57.866 --> 00:11:59.896 we're going to say purchase00:11:59.900 --> 00:12:04.640 add addresses to book.00:12:04.640 --> 00:12:05.959 OK, and then we're saying, hey,00:12:05.959 --> 00:12:08.031 this is the name of this app setting00:12:08.031 --> 00:12:09.740 which is going to be, you know,00:12:09.740 --> 00:12:11.140 inside of the address book.00:12:11.140 --> 00:12:13.316 So to access this on the front end,00:12:13.320 --> 00:12:16.666 it'll end up being like Ceph config00:12:16.666 --> 00:12:19.699 dot feature set address book dot00:12:19.700 --> 00:12:22.110 purchase add addresses to book.00:12:24.240 --> 00:12:27.269 And the purchase it it. It says, OK,00:12:27.269 --> 00:12:30.370 this is the property app setting name on00:12:30.370 --> 00:12:33.988 the front end and the value of this is.00:12:36.100 --> 00:12:38.389 The value of this app setting which00:12:38.389 --> 00:12:40.947 we know will be true because again,00:12:40.950 --> 00:12:44.160 purchase that addresses the book.00:12:44.160 --> 00:12:45.210 Purchase that editor.00:12:45.210 --> 00:12:47.660 Sister book is reading off of this,00:12:47.660 --> 00:12:49.508 UM, but even if it wasn't,00:12:49.510 --> 00:12:51.050 the default value is true,00:12:51.050 --> 00:12:52.440 so we know it's true.00:12:52.440 --> 00:12:54.942 And then it's two string to00:12:54.942 --> 00:12:57.072 lower because and this is also00:12:57.072 --> 00:12:58.946 something I'm not 100% sure about,00:12:58.946 --> 00:13:01.250 but just the I think it's the way00:13:01.320 --> 00:13:03.473 this is loading as like Jason that00:13:03.473 --> 00:13:05.716 has to be a string. So this will be.00:13:05.716 --> 00:13:06.686 This will end up being.00:13:08.870 --> 00:13:12.270 All lowercase TRUE as a string,00:13:12.270 --> 00:13:14.706 and then when it's on the front00:13:14.706 --> 00:13:17.324 end that that does then get like.00:13:17.330 --> 00:13:19.922 Probably because of the Jason that is then00:13:19.922 --> 00:13:22.283 either true or false, the Boolean value.00:13:22.283 --> 00:13:26.103 Uhm, so then on the front end if you needed00:13:26.103 --> 00:13:29.460 this app setting so it's wrapped in in HTML,00:13:29.460 --> 00:13:30.860 basically around the add button,00:13:30.860 --> 00:13:33.499 there's an add button next to the00:13:33.499 --> 00:13:36.716 address on the website and this00:13:36.716 --> 00:13:41.084 if purchase add addresses to book.00:13:41.090 --> 00:13:44.627 Uhm, display that button, right? Uhm?00:13:44.627 --> 00:13:47.009 Basically, is how that would work.00:13:47.010 --> 00:13:48.074 Now would be a little bit more00:13:48.074 --> 00:13:49.288 complicated than that, because the,00:13:49.288 --> 00:13:52.320 UM, you know we would actually have the00:13:52.395 --> 00:13:55.020 TypeScript to the HTML and all that.00:13:55.020 --> 00:13:57.240 This is accessible in the TypeScript.00:13:57.240 --> 00:13:58.012 We can access it.00:13:58.012 --> 00:14:01.600 I think in the HTML as well, but.00:14:01.600 --> 00:14:03.265 Anyways, yeah so you would00:14:03.265 --> 00:14:04.930 conditionally just display that add,00:14:04.930 --> 00:14:07.578 uh, or I'm sorry that's not even right.00:14:07.580 --> 00:14:09.084 I that was wrong.00:14:09.084 --> 00:14:11.899 The inside the code inside of the00:14:11.899 --> 00:14:14.731 function that actually that's called when00:14:14.731 --> 00:14:18.636 you click the add address to book that will.00:14:18.640 --> 00:14:20.690 Uhm?00:14:20.690 --> 00:14:22.412 Uh, that has code in there that00:14:22.412 --> 00:14:23.778 actually adds the address that00:14:23.778 --> 00:14:25.208 they entered into the address00:14:25.208 --> 00:14:27.080 book and saves it to the database.00:14:27.080 --> 00:14:29.432 So you would wrap that piece of the00:14:29.432 --> 00:14:31.124 functionality inside of this app setting00:14:31.124 --> 00:14:33.438 and basically say only do this if it's true,00:14:33.440 --> 00:14:34.612 else don't actually add00:14:34.612 --> 00:14:36.077 it to the address book,00:14:36.080 --> 00:14:38.384 so that's a quick rundown with00:14:38.384 --> 00:14:39.920 me fumbling over it.00:14:39.920 --> 00:14:43.720 A little bit of how app settings work.00:14:43.720 --> 00:14:44.740 But yeah,00:14:44.740 --> 00:14:47.800 essentially it it is to unlock00:14:47.800 --> 00:14:49.810 different paths based on what the00:14:49.810 --> 00:14:51.518 client wants and the functionality00:14:51.518 --> 00:14:53.950 so that we can have all of the00:14:53.950 --> 00:14:55.870 same codebase for our clients.