Fix: Media Picker creates duplicated folders (#12918) (#12948)

* fix: Media Picker creates duplicated folders (#12918)

* Fix: Media section multiple content creation (#12918)
This commit is contained in:
Mayur D
2022-09-05 05:47:46 +05:30
committed by GitHub
parent df3777f976
commit 1f5d58b1a9
2 changed files with 7 additions and 0 deletions

View File

@@ -218,6 +218,9 @@ angular.module("umbraco")
}
function submitFolder() {
if ($scope.model.creatingFolder) {
return;
}
if ($scope.model.newFolderName) {
$scope.model.creatingFolder = true;
mediaResource

View File

@@ -176,6 +176,10 @@ function mediaEditController($scope, $routeParams, $location, $http, $q, appStat
$scope.save = function () {
if($scope.page.saveButtonState == "busy"){
return;
}
if (formHelper.submitForm({ scope: $scope })) {
$scope.page.saveButtonState = "busy";