File tree Expand file tree Collapse file tree 2 files changed +14
-5
lines changed
src/Skybrud.Umbraco.MultiNodeTreePicker
App_Plugins/Skybrud.Umbraco.MultiNodeTreePicker Expand file tree Collapse file tree 2 files changed +14
-5
lines changed Load Diff This file was deleted.
Original file line number Diff line number Diff line change 1
1
using Skybrud . Umbraco . MultiNodeTreePicker . Converters ;
2
2
using Umbraco . Cms . Core . Composing ;
3
3
using Umbraco . Cms . Core . DependencyInjection ;
4
+ using Umbraco . Cms . Core . WebAssets ;
4
5
5
6
namespace Skybrud . Umbraco . MultiNodeTreePicker . Composers {
6
7
7
8
internal sealed class MntpComposer : IComposer {
8
9
9
10
public void Compose ( IUmbracoBuilder builder ) {
10
11
builder . WithCollectionBuilder < MntpConverterCollectionBuilder > ( ) . Add ( ( ) => builder . TypeLoader . GetTypes < IMntpItemConverter > ( ) ) ;
12
+ builder . BackOfficeAssets ( ) . Append < BackOfficeJavaScriptAsset > ( ) ;
13
+ }
14
+
15
+ public class BackOfficeJavaScriptAsset : IAssetFile {
16
+
17
+ public AssetType DependencyType => AssetType . Javascript ;
18
+
19
+ public string FilePath { get ; set ; }
20
+
21
+ public BackOfficeJavaScriptAsset ( ) {
22
+ FilePath = "/App_Plugins/Skybrud.Umbraco.MultiNodeTreePicker/MntpConverter.js" ;
23
+ }
24
+
11
25
}
12
26
13
27
}
You can’t perform that action at this time.
0 commit comments