Merge pull request #3525 from umbraco/temp8-265-cant-create-partial-view-macro-files

Change sections on views for partial view macros
This commit is contained in:
Shannon Deminick
2018-11-14 19:07:26 +11:00
committed by GitHub

View File

@@ -52,23 +52,23 @@
}, function (err) {
vm.createFolderError = err;
});
}
}
function createFile() {
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true");
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true");
navigationService.hideMenu();
}
function createFileWithoutMacro() {
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true").search("nomacro", "true");
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true").search("nomacro", "true");
navigationService.hideMenu();
}
function createFileFromSnippet(snippet) {
$location.path("/developer/partialviewmacros/edit/" + node.id).search("create", "true").search("snippet", snippet.fileName);
$location.path("/settings/partialviewmacros/edit/" + node.id).search("create", "true").search("snippet", snippet.fileName);
navigationService.hideMenu();
}