Files
backroad/app/portainer/components/copy-button/copy-button.controller.js
Matt Hook d8793b2c96 feat(helm/views): helm release and application views EE-1236 (#5529)
* feat(helm): add helm chart backport to ce EE-1409 (#5425)

* EE-1311 Helm Chart Backport from EE

* backport to ce

Co-authored-by: Matt Hook <hookenz@gmail.com>

* Pull in all changes from tech review in EE-943

* added helm to sidebar after rebase, sync CE with EE

* removed redundant handler (not used) - to match EE

* feat(helm) display helm charts - backend EE-1236

* copy over components for new applications view EE-1236

* Add new applications datatable component

* Add more migrated files

* removed test not applicable to CE

* baclkported EE app data table code to CE

* removed redundant helm repo url

* resolved conflicts, updated code

* using endpoint middleware

* PR review fixes

* using constants, openapi updated

Co-authored-by: Richard Wei <54336863+WaysonWei@users.noreply.github.com>
Co-authored-by: zees-dev <dev.786zshan@gmail.com>
2021-09-02 16:22:51 +12:00

14 lines
322 B
JavaScript

export default class CopyButtonController {
/* @ngInject */
constructor(clipboard) {
this.clipboard = clipboard;
this.state = { isFading: false };
}
copyValueText() {
this.clipboard.copyText(this.value);
this.state.isFading = true;
setTimeout(() => (this.state.isFading = false), 1000);
}
}