mirror of
https://github.com/portainer/portainer.git
synced 2025-07-20 13:59:40 +02:00
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);
|