diff --git a/client/src/components/User/UserDatasetPermissions.vue b/client/src/components/User/UserDatasetPermissions.vue new file mode 100644 index 000000000000..baa26dbb924d --- /dev/null +++ b/client/src/components/User/UserDatasetPermissions.vue @@ -0,0 +1,110 @@ + + + + + + Loading.... + + + + {{ title }} + + + + Make new datasets private + + + Show advanced options. + + + + + + + + diff --git a/client/src/components/User/UserPreferences.vue b/client/src/components/User/UserPreferences.vue index e432f8a506b9..b4c63a597076 100644 --- a/client/src/components/User/UserPreferences.vue +++ b/client/src/components/User/UserPreferences.vue @@ -29,6 +29,13 @@ :title="link.title" :description="link.description" :to="`/user/${index}`" /> + { redirect: "/user", disabled: config.use_remote_user || !config.enable_account_interface, }, - permissions: { - title: _l("Set Dataset Permissions for New Histories"), - id: "edit-preferences-permissions", - description: _l( - "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/${user_id}/permissions/inputs`, - icon: "fa-users", - submitTitle: "Save Permissions", - redirect: "/user", - disabled: config.single_user, - }, toolbox_filters: { title: _l("Manage Toolbox Filters"), id: "edit-preferences-toolbox-filters", diff --git a/client/src/entry/analysis/router.js b/client/src/entry/analysis/router.js index b0618f00a18d..864e812f3cfb 100644 --- a/client/src/entry/analysis/router.js +++ b/client/src/entry/analysis/router.js @@ -71,6 +71,7 @@ import HistoryArchiveWizard from "@/components/History/Archiving/HistoryArchiveW import NotificationsList from "@/components/Notifications/NotificationsList.vue"; import Sharing from "@/components/Sharing/SharingPage.vue"; import HistoryStorageOverview from "@/components/User/DiskUsage/Visualizations/HistoryStorageOverview.vue"; +import UserDatasetPermissions from "@/components/User/UserDatasetPermissions.vue"; import WorkflowPublished from "@/components/Workflow/Published/WorkflowPublished.vue"; Vue.use(VueRouter); @@ -431,6 +432,14 @@ export function getRouter(Galaxy) { component: NotificationsPreferences, redirect: redirectAnon(), }, + { + path: "user/permissions", + component: UserDatasetPermissions, + redirect: redirectAnon(), + props: (route) => ({ + userId: Galaxy.user.id, + }), + }, { path: "user/:formId", component: UserPreferencesForm,