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:
@@ -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();
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user