mirror of https://github.com/portainer/portainer
18 lines
445 B
JavaScript
18 lines
445 B
JavaScript
import angular from 'angular';
|
|||
|
|||
class KubernetesYamlInspectorController {
|
|||
/* @ngInject */
|
|||
|
|||
constructor(clipboard) {
|
|||
this.clipboard = clipboard;
|
|||
}
|
|||
|
|||
copyYAML() {
|
|||
this.clipboard.copyText(this.data);
|
|||
$('#copyNotificationYAML').show().fadeOut(2500);
|
|||
}
|
|||
}
|
|||
|
|||
export default KubernetesYamlInspectorController;
|
|||
angular.module('portainer.kubernetes').controller('KubernetesYamlInspectorController', KubernetesYamlInspectorController);
|