diff --git a/client/galaxy/scripts/components/User/UserPreferences.vue b/client/galaxy/scripts/components/User/UserPreferences.vue index 6bc0e467dd5..2d7453652f1 100644 --- a/client/galaxy/scripts/components/User/UserPreferences.vue +++ b/client/galaxy/scripts/components/User/UserPreferences.vue @@ -5,16 +5,16 @@ {{ message }}
- You are logged in as {{ email }}{{ email }}.
You are using {{ diskUsage }} of disk space in this Galaxy instance.
@@ -107,6 +117,18 @@ export default {
}
},
methods: {
+ toggleNotifications() {
+ Notification.requestPermission().then(function(permission) {
+ //If the user accepts, let's create a notification
+ if (permission === "granted") {
+ new Notification("Notifications enabled", {
+ icon: "static/favicon.ico"
+ });
+ } else {
+ alert("Notifications disabled, please re-enable through browser settings.");
+ }
+ });
+ },
openManageCustomBuilds() {
const Galaxy = getGalaxyInstance();
Galaxy.page.router.push(`${getAppRoot()}custom_builds`);
diff --git a/client/galaxy/scripts/components/User/UserPreferencesModel.js b/client/galaxy/scripts/components/User/UserPreferencesModel.js
index 58660c8549e..702d038ae39 100644
--- a/client/galaxy/scripts/components/User/UserPreferencesModel.js
+++ b/client/galaxy/scripts/components/User/UserPreferencesModel.js
@@ -7,6 +7,7 @@ export const getUserPreferencesModel = () => {
return {
information: {
title: _l("Manage Information"),
+ id: "edit-preferences-information",
description: "Edit your email, addresses and custom parameters or change your public name.",
url: `api/users/${Galaxy.user.id}/information/inputs`,
icon: "fa-user",
@@ -15,6 +16,7 @@ export const getUserPreferencesModel = () => {
},
password: {
title: _l("Change Password"),
+ id: "edit-preferences-password",
description: _l("Allows you to change your login credentials."),
icon: "fa-unlock-alt",
url: `api/users/${Galaxy.user.id}/password/inputs`,
@@ -24,6 +26,7 @@ export const getUserPreferencesModel = () => {
},
communication: {
title: _l("Change Communication Settings"),
+ id: "edit-preferences-communication",
description: _l("Enable or disable the communication feature to chat with other users."),
url: `api/users/${Galaxy.user.id}/communication/inputs`,
icon: "fa-comments-o",
@@ -32,6 +35,7 @@ export const getUserPreferencesModel = () => {
},
permissions: {
title: _l("Set Dataset Permissions for new Histories"),
+ id: "edit-preferences-permissions",
description:
"Grant others default access to newly created histories. Changes made here will only affect histories created after these settings have been stored.",
url: `api/users/${Galaxy.user.id}/permissions/inputs`,
@@ -41,11 +45,13 @@ export const getUserPreferencesModel = () => {
},
make_data_private: {
title: _l("Make all Data Private"),
+ id: "edit-preferences-make-data-private",
description: _l("Click here to make all data private."),
icon: "fa-lock"
},
api_key: {
title: _l("Manage API Key"),
+ id: "edit-preferences-api-key",
description: _l("Access your current API key or create a new one."),
url: `api/users/${Galaxy.user.id}/api_key/inputs`,
icon: "fa-key",
@@ -53,6 +59,7 @@ export const getUserPreferencesModel = () => {
submit_icon: "fa-check"
},
cloud_auth: {
+ id: "edit-preferences-cloud-auth",
title: _l("Manage Cloud Authorization"),
description: _l("Add or modify the configuration that grants Galaxy to access your cloud-based resources."),
icon: "fa-cloud",
@@ -61,6 +68,7 @@ export const getUserPreferencesModel = () => {
},
toolbox_filters: {
title: _l("Manage Toolbox Filters"),
+ id: "edit-preferences-toolbox-filters",
description: _l("Customize your Toolbox by displaying or omitting sets of Tools."),
url: `api/users/${Galaxy.user.id}/toolbox_filters/inputs`,
icon: "fa-filter",
@@ -75,6 +83,7 @@ export const getUserPreferencesModel = () => {
},
logout: {
title: _l("Sign Out"),
+ id: "edit-preferences-custom-builds",
description: _l("Click here to sign out of all sessions."),
icon: "fa-sign-out",
shouldRender: !!Galaxy.session_csrf_token
diff --git a/client/galaxy/scripts/components/Workflow/Editor/Node.vue b/client/galaxy/scripts/components/Workflow/Editor/Node.vue
index 444443f16c2..5de4895e817 100644
--- a/client/galaxy/scripts/components/Workflow/Editor/Node.vue
+++ b/client/galaxy/scripts/components/Workflow/Editor/Node.vue
@@ -1,9 +1,10 @@