Skip to content
This repository has been archived by the owner on Apr 2, 2024. It is now read-only.

Commit

Permalink
Fix bootstrap copy command (#110)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexGodbehere authored Feb 21, 2024
1 parent a19fbe6 commit eae4cbd
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 149 deletions.
1 change: 0 additions & 1 deletion resources/js/app.js
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,6 @@ Vue.component('dashboard', () => import(/* webpackPrefetch: true */ './component
Vue.component('node-container', () => import(/* webpackPrefetch: true */ './components/Containers/NodeContainer.vue'));
Vue.component('device-editor-container', () => import(/* webpackPrefetch: true */ './components/Containers/DeviceEditorContainer.vue'));
Vue.component('schema-editor-container', () => import(/* webpackPrefetch: true */ './components/Containers/SchemaEditorContainer.vue'));
Vue.component('edge-cluster-container', () => import(/* webpackPrefetch: true */ './components/Containers/EdgeClusterContainer.vue'));

// Components
Vue.component('Loader', () => import(/* webpackPrefetch: true */ './components/General/Loader.vue'));
Expand Down
142 changes: 0 additions & 142 deletions resources/js/components/Containers/EdgeClusterContainer.vue

This file was deleted.

12 changes: 12 additions & 0 deletions resources/js/components/Containers/NodeContainer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -286,6 +286,18 @@ export default {
this.newClusterDialogVisible = false
},

async copyToClipboard (text) {
try {
await navigator.clipboard.writeText(text)
} catch (err) {
console.warn(`Failed to copy to clipboard: ${text}`);
window.showNotification({
title: 'Failed to copy to clipboard.',
description: err,
type: 'error',
})
}
},

// maybeDeleteGroup(group) {
// if (this.deletingGroup) return;
Expand Down
6 changes: 0 additions & 6 deletions resources/views/edge-clusters.blade.php

This file was deleted.

0 comments on commit eae4cbd

Please sign in to comment.