X-Git-Url: https://git.arvados.org/arvados-workbench2.git/blobdiff_plain/1c729da03cf3aadfbe3efce2b9e47ea5eb2c9d92..3f809e0be2a712d1e576f1b2acf4aff73e0f16b0:/src/views-components/sharing-dialog/sharing-management-form.tsx

diff --git a/src/views-components/sharing-dialog/sharing-management-form.tsx b/src/views-components/sharing-dialog/sharing-management-form.tsx
index 9c707beb..d4081a4a 100644
--- a/src/views-components/sharing-dialog/sharing-management-form.tsx
+++ b/src/views-components/sharing-dialog/sharing-management-form.tsx
@@ -6,15 +6,23 @@ import { reduxForm } from 'redux-form';
 import { connect } from 'react-redux';
 import { compose } from 'redux';
 import SharingManagementFormComponent from './sharing-management-form-component';
+import { SHARING_MANAGEMENT_FORM_NAME } from '~/store/sharing-dialog/sharing-dialog-types';
+import { PermissionLevel } from '~/models/permission';
 
 export const SharingManagementForm = compose(
     connect(() => ({
         initialValues: {
             permissions: [
-                { email: 'chrystian.klingenberg@contractors.roche.com', permissions: 'Read' },
-                { email: 'artur.janicki@contractors.roche.com', permissions: 'Write' },
+                {
+                    email: 'chrystian.klingenberg@contractors.roche.com',
+                    permissions: PermissionLevel.CAN_MANAGE,
+                },
+                {
+                    email: 'artur.janicki@contractors.roche.com',
+                    permissions: PermissionLevel.CAN_WRITE,
+                },
             ],
         }
     })),
-    reduxForm({ form: 'SHARING_MANAGEMENT_FORM' })
+    reduxForm({ form: SHARING_MANAGEMENT_FORM_NAME })
 )(SharingManagementFormComponent);
\ No newline at end of file
