Skip to content

Commit 9563d70

Browse files
committed
Fix up the Angular checkbox parameter by using hg-include
1 parent eed94ae commit 9563d70

File tree

5 files changed

+21
-8
lines changed

5 files changed

+21
-8
lines changed

build/transforms/FileSystemProviders.config.install.xdt

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,11 @@
1717
Defaults to 365 days.
1818
-->
1919
<add key="maxDays" value="365" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
20+
<!--
21+
When true this allows the VirtualPathProvider to use the deafult "media" route prefix regardless
22+
of the container name.
23+
-->
24+
<add key="useDefaultRoute" value="true" xdt:Locator="Match(key)" xdt:Transform="InsertIfMissing" />
2025
</Parameters>
2126
</Provider>
2227
<!--

src/UmbracoFileSystemProviders.Azure.Installer/Configurator/Views/Configure.ascx

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,13 +37,8 @@
3737
<ng-form name="form">
3838
<label class="control-label" for="param.Key">{{ capitalizeFirstLetter(param.Key) }}</label>
3939
<div class="controls">
40-
<input
41-
class ="input-block-level"
42-
dynamic-name="param.Key"
43-
type="{{ getInputType(param.Key) }}"
44-
ng-model="param.Value"
45-
required
46-
>
40+
<span ng-if="getInputType(param.Key) === 'checkbox'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/checkbox.htm'"></span>
41+
<span ng-if="getInputType(param.Key) === 'text'" ng-include="'/App_Plugins/UmbracoFileSystemProviders/Azure/Install/Configurator/Views/textfield.htm'"></span>
4742
</div>
4843
<span data-ng-show=" {{'form.'+param.Key+'.$dirty && form.'+param.Key+'.$error.required'}}">Required!</span>
4944
</ng-form>
@@ -78,4 +73,5 @@
7873
</div>
7974

8075
</div>
81-
</div>
76+
</div>
77+
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<input class="input-block-level"
2+
dynamic-name="param.Key"
3+
type="checkbox"
4+
ng-checked="param.Value"
5+
>
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<input class="input-block-level"
2+
dynamic-name="param.Key"
3+
type="text"
4+
ng-model="param.Value"
5+
required>

src/UmbracoFileSystemProviders.Azure.Installer/UmbracoFileSystemProviders.Azure.Installer.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -271,9 +271,11 @@
271271
</ItemGroup>
272272
<ItemGroup>
273273
<Content Include="Configurator\Controllers\Configure.js" />
274+
<Content Include="Configurator\Views\checkbox.htm" />
274275
<Content Include="Configurator\Views\Configure.ascx">
275276
<SubType>ASPXCodeBehind</SubType>
276277
</Content>
278+
<Content Include="Configurator\Views\textfield.htm" />
277279
</ItemGroup>
278280
<ItemGroup>
279281
<Analyzer Include="..\packages\StyleCop.Analyzers.1.0.0-beta014\analyzers\dotnet\cs\Newtonsoft.Json.dll" />

0 commit comments

Comments
 (0)