minor rename

This commit is contained in:
Niels Lyngsø
2019-05-06 14:27:15 +02:00
parent bfdeb6c987
commit 74cbff5ee5
2 changed files with 20 additions and 4 deletions

View File

@@ -78,8 +78,7 @@ function clipboardService(notificationsService, eventsService) {
* @methodOf umbraco.services.clipboardService
*
* @description
* Saves a JS-object to the LocalStage of copied entries.
*
* Saves a single JS-object with a type and alias to the clipboard.
*/
service.copy = function(type, alias, data) {
@@ -109,8 +108,25 @@ function clipboardService(notificationsService, eventsService) {
};
service.supportsCopy = supportsLocalStorage;
/**
* @ngdoc method
* @name umbraco.services.supportsCopy#supported
* @methodOf umbraco.services.clipboardService
*
* @description
* Determins wether the current browser is able to performe its actions.
*/
service.isSupported = supportsLocalStorage;
/**
* @ngdoc method
* @name umbraco.services.supportsCopy#copy
* @methodOf umbraco.services.clipboardService
*
* @description
* Determins wether the current browser is able to performe a copy-action.
*/
service.hasEntriesOfType = function(type, aliases) {
if(service.retriveEntriesOfType(type, aliases).length > 0) {

View File

@@ -334,7 +334,7 @@ angular.module("umbraco").controller("Umbraco.PropertyEditors.NestedContent.Prop
});
}
$scope.showCopy = clipboardService.supportsCopy();
$scope.showCopy = clipboardService.isSupported();
$scope.showPaste = false;