Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

πŸ› Fixes missing copyclipboard in workspace view (#1851)

Alicia Sykes1cf089d4f14d
diff --git a/src/views/Workspace.vue b/src/views/Workspace.vue
index 01b15327..6e5f0fae 100644
--- a/src/views/Workspace.vue
+++ b/src/views/Workspace.vue
@@ -48,6 +48,16 @@ export default {
launchApp(options) {
if (options.target === 'newtab') {
window.open(options.url, '_blank');
+ } else if (options.target === 'newwindow') {
+ window.open(options.url, '_blank', 'noopener,noreferrer');
+ } else if (options.target === 'clipboard') {
+ if (navigator.clipboard) {
+ navigator.clipboard.writeText(options.url);
+ this.$toasted.show(this.$t('context-menus.item.copied-toast'), { className: 'toast-success' });
+ } else {
+ this.$toasted.show('Unable to copy, see log', { className: 'toast-error' });
+ }
+ return;
} else {
this.url = options.url;
}