From 763220f3dac054868882af16367676c48182977f Mon Sep 17 00:00:00 2001 From: Unknown Date: Tue, 22 Jan 2019 17:16:17 -0800 Subject: [PATCH 1/9] POC: Swap 'Doc Type Picker' with List View's layout control --- .../InnerContent/css/innercontent.css | 13 +--- .../InnerContent/js/innercontent.js | 44 +++++++++++- .../views/innercontent.doctypepicker.html | 68 +++++++++---------- 3 files changed, 76 insertions(+), 49 deletions(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css index 5fe1ff7..84751ef 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css @@ -1,26 +1,19 @@ /* Inner Content - Doc Type Picker */ -.inner-content__doctypepicker table input, -.inner-content__doctypepicker table select { - width: 100%; - padding-right: 0; +.inner-content__doctypepicker .inner-content__help-container { + text-align: right; + margin-bottom: .5em; } -.inner-content__doctypepicker table td.icon-navigation, .inner-content__doctypepicker i.inner-content__help-icon { vertical-align: middle; color: #CCC; } -.inner-content__doctypepicker table td.icon-navigation:hover, .inner-content__doctypepicker i.inner-content__help-icon:hover { color: #343434; } -.inner-content__doctypepicker table .td-min { - width: 1px; -} - /* Inner Content - Content Overlay Panel */ diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js index 6147182..34cf228 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js @@ -7,10 +7,14 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy function ($scope, innerContentService) { var vm = this; + vm.docTypes = []; + vm.selectedDocTypes = []; vm.add = add; vm.remove = remove; vm.tooltipMouseOver = tooltipMouseOver; vm.tooltipMouseLeave = tooltipMouseLeave; + vm.getContentType = getContentType; + vm.openDocTypePicker = openDocTypePicker; vm.sortableOptions = { axis: "y", @@ -33,23 +37,26 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy innerContentService.getAllContentTypes().then(function (docTypes) { vm.docTypes = docTypes; + updateSelectedDocTypes(); }); if (!$scope.model.value) { $scope.model.value = []; - add(); } function add() { - $scope.model.value.push({ + var newItem = { icContentTypeGuid: "", nameTemplate: "" - }); + }; + $scope.model.value.push(newItem); + openDocTypePicker(newItem); setDirty(); }; function remove(index) { $scope.model.value.splice(index, 1); + updateSelectedDocTypes(); setDirty(); }; @@ -69,6 +76,37 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy }; }; + function updateSelectedDocTypes() { + vm.selectedDocTypes = _.filter(vm.docTypes, function (i) { + var match = _.find($scope.model.value, function (c) { + return c.icContentTypeGuid === i.guid; + }); + + return match !== undefined; + }); + }; + + function getContentType(guid) { + return _.find(vm.docTypes, function (d) { + return d.guid === guid; + }); + }; + + function openDocTypePicker(config) { + vm.docTypePicker = { + view: "itempicker", + availableItems: vm.docTypes, + selectedItems: vm.selectedDocTypes, + show: true, + submit: function (model) { + config.icContentTypeGuid = model.selectedItem.guid; + updateSelectedDocTypes(); + vm.docTypePicker.show = false; + vm.docTypePicker = null; + } + }; + }; + function setDirty() { if ($scope.propertyForm) { $scope.propertyForm.$setDirty(); diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html index 8c4fd03..561f9cd 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html @@ -1,42 +1,38 @@ 
-
- - - - - - - - - - - - - - - -
- - Document Type - - Name Template - - -
- - - - - Remove -
-
- Add +
+ +
+
+
+ +
+ + + +
+
+ {{ vm.getContentType(config.icContentTypeGuid).name || 'Name' }} + ({{ vm.getContentType(config.icContentTypeGuid).alias || 'alias' }}) +
+
+ +
+
+
+ +
+
+ Add Content Type
+ + {{vm.tooltip.content}} From 8c51eba435ef4b086ddac2754e38ab63981c63f5 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 25 Jul 2019 16:21:10 -0700 Subject: [PATCH 2/9] Create build process for Azure Pipelines Attempt to use env variables in cmd Fix typo Attempt to pass variables to cmd Pass env variables to cmd Set variables instead of just echo TYPO Echo out variable values Try echoing values of set variables Try using BuildId Remove spaces from variable sets Add suffix Add LCSC as suffix Publish artifacts --- azure-pipelines.yml | 26 ++++++++++++++++++++++++++ build-pipelines.cmd | 13 +++++++++++++ 2 files changed, 39 insertions(+) create mode 100644 azure-pipelines.yml create mode 100644 build-pipelines.cmd diff --git a/azure-pipelines.yml b/azure-pipelines.yml new file mode 100644 index 0000000..87ddae6 --- /dev/null +++ b/azure-pipelines.yml @@ -0,0 +1,26 @@ +trigger: +- master + +pool: + vmImage: 'vs2017-win2016' + +variables: + version: 2.0.5.$(Build.BuildId) + +steps: +- task: CmdLine@2 + displayName: 'Build Packages' + inputs: + script: 'build-pipelines.cmd' + env: + BranchName: $(Build.SourceBranchName) + Version: $(version) + BuildNumber: $(Build.BuildId) + Tag: false + Suffix: 'lcsc' + +- task: PublishBuildArtifacts@1 + inputs: + PathtoPublish: 'artifacts' + ArtifactName: 'drop' + publishLocation: 'Container' \ No newline at end of file diff --git a/build-pipelines.cmd b/build-pipelines.cmd new file mode 100644 index 0000000..738b68b --- /dev/null +++ b/build-pipelines.cmd @@ -0,0 +1,13 @@ +SET APPVEYOR_REPO_BRANCH=%BRANCHNAME% +SET APPVEYOR_REPO_TAG=%TAG% +SET APPVEYOR_BUILD_NUMBER=%BUILDNUMBER% +SET APPVEYOR_BUILD_VERSION=%VERSION% +SET UMBRACO_PACKAGE_PRERELEASE_SUFFIX=%SUFFIX% + +ECHO APPVEYOR_REPO_BRANCH : %APPVEYOR_REPO_BRANCH% +ECHO APPVEYOR_REPO_TAG : %APPVEYOR_REPO_TAG% +ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% +ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% + +CALL build\tools\NuGet\NuGet.exe restore src\Our.Umbraco.InnerContent.sln +CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\MsBuild.exe" build\package.proj \ No newline at end of file From 07eb44c6ec9b2bb62bd8e80f999df3a8194437a2 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 25 Jul 2019 16:30:22 -0700 Subject: [PATCH 3/9] Add new files to solution items --- src/Our.Umbraco.InnerContent.sln | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/Our.Umbraco.InnerContent.sln b/src/Our.Umbraco.InnerContent.sln index fa87552..9c851ab 100644 --- a/src/Our.Umbraco.InnerContent.sln +++ b/src/Our.Umbraco.InnerContent.sln @@ -15,7 +15,9 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Scripts", "Build Scripts", "{0EDC340A-DCE2-459A-9114-99B7334A1D2D}" ProjectSection(SolutionItems) = preProject ..\appveyor.yml = ..\appveyor.yml + ..\azure-pipelines.yml = ..\azure-pipelines.yml ..\build-appveyor.cmd = ..\build-appveyor.cmd + ..\build-pipelines.cmd = ..\build-pipelines.cmd ..\build.cmd = ..\build.cmd ..\build\install.ps1 = ..\build\install.ps1 ..\build\package.core.nuspec = ..\build\package.core.nuspec From e5d747363b60d85bdada1d6c1764d2705b9ac860 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 25 Jul 2019 16:50:54 -0700 Subject: [PATCH 4/9] Don't add new type to model until after a doctype is selected --- .../Web/UI/App_Plugins/InnerContent/js/innercontent.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js index 3d2ee27..1d0c83c 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js @@ -1,4 +1,4 @@ -// Prevalue Editors +// Prevalue Editors angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTypePickerController", [ "$scope", @@ -49,7 +49,6 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy icContentTypeGuid: "", nameTemplate: "" }; - $scope.model.value.push(newItem); openDocTypePicker(newItem); setDirty(); }; @@ -100,6 +99,8 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy show: true, submit: function (model) { config.icContentTypeGuid = model.selectedItem.guid; + $scope.model.value.push(config); + updateSelectedDocTypes(); vm.docTypePicker.show = false; vm.docTypePicker = null; From 12ebc04086e79343597d3a9958d54a2bc4cffdc5 Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 25 Jul 2019 17:02:17 -0700 Subject: [PATCH 5/9] Drop doctype alias to new line --- .../Web/UI/App_Plugins/InnerContent/css/innercontent.css | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css index 84751ef..7a02751 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/css/innercontent.css @@ -10,10 +10,13 @@ color: #CCC; } -.inner-content__doctypepicker i.inner-content__help-icon:hover { - color: #343434; -} + .inner-content__doctypepicker i.inner-content__help-icon:hover { + color: #343434; + } +.inner-content__doctypepicker .list-view-layout__system { + width: 100%; +} /* Inner Content - Content Overlay Panel */ From 5949b6babd35a62782b47a0fcfb786a65a61134c Mon Sep 17 00:00:00 2001 From: Dan White Date: Thu, 25 Jul 2019 17:07:54 -0700 Subject: [PATCH 6/9] Remove files from unrelated branch --- azure-pipelines.yml | 26 -------------------------- build-pipelines.cmd | 13 ------------- src/Our.Umbraco.InnerContent.sln | 2 -- 3 files changed, 41 deletions(-) delete mode 100644 azure-pipelines.yml delete mode 100644 build-pipelines.cmd diff --git a/azure-pipelines.yml b/azure-pipelines.yml deleted file mode 100644 index 87ddae6..0000000 --- a/azure-pipelines.yml +++ /dev/null @@ -1,26 +0,0 @@ -trigger: -- master - -pool: - vmImage: 'vs2017-win2016' - -variables: - version: 2.0.5.$(Build.BuildId) - -steps: -- task: CmdLine@2 - displayName: 'Build Packages' - inputs: - script: 'build-pipelines.cmd' - env: - BranchName: $(Build.SourceBranchName) - Version: $(version) - BuildNumber: $(Build.BuildId) - Tag: false - Suffix: 'lcsc' - -- task: PublishBuildArtifacts@1 - inputs: - PathtoPublish: 'artifacts' - ArtifactName: 'drop' - publishLocation: 'Container' \ No newline at end of file diff --git a/build-pipelines.cmd b/build-pipelines.cmd deleted file mode 100644 index 738b68b..0000000 --- a/build-pipelines.cmd +++ /dev/null @@ -1,13 +0,0 @@ -SET APPVEYOR_REPO_BRANCH=%BRANCHNAME% -SET APPVEYOR_REPO_TAG=%TAG% -SET APPVEYOR_BUILD_NUMBER=%BUILDNUMBER% -SET APPVEYOR_BUILD_VERSION=%VERSION% -SET UMBRACO_PACKAGE_PRERELEASE_SUFFIX=%SUFFIX% - -ECHO APPVEYOR_REPO_BRANCH : %APPVEYOR_REPO_BRANCH% -ECHO APPVEYOR_REPO_TAG : %APPVEYOR_REPO_TAG% -ECHO APPVEYOR_BUILD_NUMBER : %APPVEYOR_BUILD_NUMBER% -ECHO APPVEYOR_BUILD_VERSION : %APPVEYOR_BUILD_VERSION% - -CALL build\tools\NuGet\NuGet.exe restore src\Our.Umbraco.InnerContent.sln -CALL "%programfiles(x86)%\Microsoft Visual Studio\2017\Enterprise\MSBuild\15.0\Bin\amd64\MsBuild.exe" build\package.proj \ No newline at end of file diff --git a/src/Our.Umbraco.InnerContent.sln b/src/Our.Umbraco.InnerContent.sln index 9c851ab..fa87552 100644 --- a/src/Our.Umbraco.InnerContent.sln +++ b/src/Our.Umbraco.InnerContent.sln @@ -15,9 +15,7 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Build Scripts", "Build Scripts", "{0EDC340A-DCE2-459A-9114-99B7334A1D2D}" ProjectSection(SolutionItems) = preProject ..\appveyor.yml = ..\appveyor.yml - ..\azure-pipelines.yml = ..\azure-pipelines.yml ..\build-appveyor.cmd = ..\build-appveyor.cmd - ..\build-pipelines.cmd = ..\build-pipelines.cmd ..\build.cmd = ..\build.cmd ..\build\install.ps1 = ..\build\install.ps1 ..\build\package.core.nuspec = ..\build\package.core.nuspec From b322920753fcdf003016b781ab52fd4a2f4b062c Mon Sep 17 00:00:00 2001 From: Dan White Date: Fri, 26 Jul 2019 09:09:46 -0700 Subject: [PATCH 7/9] Use confirm dialog before removing doctype --- .../Web/UI/App_Plugins/InnerContent/js/innercontent.js | 10 ++++++++++ .../InnerContent/views/innercontent.doctypepicker.html | 7 ++++++- 2 files changed, 16 insertions(+), 1 deletion(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js index 1d0c83c..01b3285 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js @@ -15,6 +15,8 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy vm.tooltipMouseLeave = tooltipMouseLeave; vm.getContentType = getContentType; vm.openDocTypePicker = openDocTypePicker; + vm.showPrompt = showPrompt; + vm.hidePrompt = hidePrompt; vm.sortableOptions = { axis: "y", @@ -108,6 +110,14 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy }; }; + function showPrompt(config) { + config.promptIsVisible = true; + }; + + function hidePrompt(config) { + delete config.promptIsVisible; + }; + function setDirty() { if ($scope.propertyForm) { $scope.propertyForm.$setDirty(); diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html index 561f9cd..b1a4387 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html @@ -22,7 +22,12 @@
- + + +
From 73bd1d2712bdbf43fdec3b6799a3564dc3b57527 Mon Sep 17 00:00:00 2001 From: Dan White Date: Fri, 26 Jul 2019 09:37:12 -0700 Subject: [PATCH 8/9] Resolve issue with editing existing types --- .../Web/UI/App_Plugins/InnerContent/js/innercontent.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js index 01b3285..91015ab 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js @@ -51,7 +51,7 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy icContentTypeGuid: "", nameTemplate: "" }; - openDocTypePicker(newItem); + openDocTypePicker(newItem, true); setDirty(); }; @@ -93,7 +93,7 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy }); }; - function openDocTypePicker(config) { + function openDocTypePicker(config, isNew) { vm.docTypePicker = { view: "itempicker", availableItems: vm.docTypes, @@ -101,7 +101,9 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy show: true, submit: function (model) { config.icContentTypeGuid = model.selectedItem.guid; - $scope.model.value.push(config); + if (isNew === true) { + $scope.model.value.push(config); + } updateSelectedDocTypes(); vm.docTypePicker.show = false; From 3421829a0895fc3ca1e3af2bc128cb1440d63a02 Mon Sep 17 00:00:00 2001 From: Dan White Date: Fri, 26 Jul 2019 11:55:53 -0700 Subject: [PATCH 9/9] Refactor to avoid multiple calls to vm.getContentType in view --- .../InnerContent/js/innercontent.js | 62 +++++++++++++++---- .../views/innercontent.doctypepicker.html | 20 +++--- 2 files changed, 60 insertions(+), 22 deletions(-) diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js index 91015ab..1837c08 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/js/innercontent.js @@ -9,6 +9,7 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy var vm = this; vm.docTypes = []; vm.selectedDocTypes = []; + vm.selectedItems = []; vm.add = add; vm.remove = remove; vm.tooltipMouseOver = tooltipMouseOver; @@ -39,7 +40,14 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy innerContentService.getAllContentTypes().then(function (docTypes) { vm.docTypes = docTypes; + initSelectedItems(); updateSelectedDocTypes(); + + $scope.$watch('vm.selectedItems', _.debounce(function (newVal, oldVal) { + if (newVal !== oldVal) { + updateModel(); + } + }, 300), true); }); if (!$scope.model.value) { @@ -48,15 +56,18 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy function add() { var newItem = { - icContentTypeGuid: "", - nameTemplate: "" + guid: "", + nameTemplate: "", + icon: "", + name: "", + alias: "" }; openDocTypePicker(newItem, true); setDirty(); }; function remove(index) { - $scope.model.value.splice(index, 1); + vm.selectedItems.splice(index, 1); updateSelectedDocTypes(); setDirty(); }; @@ -77,32 +88,59 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy }; }; + function initSelectedItems() { + vm.selectedItems = _.map($scope.model.value, function (i) { + var docType = getContentType(i.icContentTypeGuid); + + return { + guid: i.icContentTypeGuid, + nameTemplate: i.nameTemplate, + icon: docType.icon, + name: docType.name, + alias: docType.alias + }; + }); + } + function updateSelectedDocTypes() { vm.selectedDocTypes = _.filter(vm.docTypes, function (i) { - var match = _.find($scope.model.value, function (c) { - return c.icContentTypeGuid === i.guid; + var match = _.find(vm.selectedItems, function (c) { + return c.guid === i.guid; }); return match !== undefined; }); }; + function updateModel() { + $scope.model.value = _.map(vm.selectedItems, function (i) { + return { + icContentTypeGuid: i.guid, + nameTemplate: i.nameTemplate + }; + }); + } + function getContentType(guid) { return _.find(vm.docTypes, function (d) { return d.guid === guid; }); }; - function openDocTypePicker(config, isNew) { + function openDocTypePicker(item, isNew) { vm.docTypePicker = { view: "itempicker", availableItems: vm.docTypes, selectedItems: vm.selectedDocTypes, show: true, submit: function (model) { - config.icContentTypeGuid = model.selectedItem.guid; + item.guid = model.selectedItem.guid; + item.icon = model.selectedItem.icon; + item.name = model.selectedItem.name; + item.alias = model.selectedItem.alias; + if (isNew === true) { - $scope.model.value.push(config); + vm.selectedItems.push(item); } updateSelectedDocTypes(); @@ -112,12 +150,12 @@ angular.module("umbraco").controller("Our.Umbraco.InnerContent.Controllers.DocTy }; }; - function showPrompt(config) { - config.promptIsVisible = true; + function showPrompt(item) { + item.promptIsVisible = true; }; - function hidePrompt(config) { - delete config.promptIsVisible; + function hidePrompt(item) { + delete item.promptIsVisible; }; function setDirty() { diff --git a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html index b1a4387..6f8409b 100644 --- a/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html +++ b/src/Our.Umbraco.InnerContent/Web/UI/App_Plugins/InnerContent/views/innercontent.doctypepicker.html @@ -5,28 +5,28 @@ ng-mouseover="vm.tooltipMouseOver($event)" ng-mouseleave="vm.tooltipMouseLeave()">
-
-
+
+
- {{ vm.getContentType(config.icContentTypeGuid).name || 'Name' }} - ({{ vm.getContentType(config.icContentTypeGuid).alias || 'alias' }}) + {{ item.name || 'Name' }} + ({{ item.alias || 'alias' }})
- +
- - + + on-cancel="vm.hidePrompt(item)">