Commits

Tim Donohue authored and GitHub committed d7bd3f6f54b
Revert "Submission dropzone issues"
No tags

src/app/shared/mocks/submission.mock.ts

Modified
1094 1094 isLoading: false,
1095 1095 isValid: false
1096 1096 } as any
1097 1097 },
1098 1098 isLoading: false,
1099 1099 savePending: false,
1100 1100 depositPending: false
1101 1101 }
1102 1102 });
1103 1103
1104 -export const mockSubmissionStateWithoutUpload: SubmissionObjectState = Object.assign({}, {
1105 - 826: {
1106 - collection: mockSubmissionCollectionId,
1107 - definition: 'traditional',
1108 - selfUrl: mockSubmissionSelfUrl,
1109 - activeSection: null,
1110 - sections: {
1111 - extraction: {
1112 - config: '',
1113 - mandatory: true,
1114 - sectionType: 'utils',
1115 - visibility: {
1116 - main: 'HIDDEN',
1117 - other: 'HIDDEN'
1118 - },
1119 - collapsed: false,
1120 - enabled: true,
1121 - data: {},
1122 - errors: [],
1123 - isLoading: false,
1124 - isValid: false
1125 - } as any,
1126 - collection: {
1127 - config: '',
1128 - mandatory: true,
1129 - sectionType: 'collection',
1130 - visibility: {
1131 - main: 'HIDDEN',
1132 - other: 'HIDDEN'
1133 - },
1134 - collapsed: false,
1135 - enabled: true,
1136 - data: {},
1137 - errors: [],
1138 - isLoading: false,
1139 - isValid: false
1140 - } as any,
1141 - traditionalpageone: {
1142 - header: 'submit.progressbar.describe.stepone',
1143 - config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/traditionalpageone',
1144 - mandatory: true,
1145 - sectionType: 'submission-form',
1146 - collapsed: false,
1147 - enabled: true,
1148 - data: {},
1149 - errors: [],
1150 - formId: '2_traditionalpageone',
1151 - isLoading: false,
1152 - isValid: false
1153 - } as any,
1154 - traditionalpagetwo: {
1155 - header: 'submit.progressbar.describe.steptwo',
1156 - config: 'https://rest.api/dspace-spring-rest/api/config/submissionforms/traditionalpagetwo',
1157 - mandatory: false,
1158 - sectionType: 'submission-form',
1159 - collapsed: false,
1160 - enabled: false,
1161 - data: {},
1162 - errors: [],
1163 - isLoading: false,
1164 - isValid: false
1165 - } as any,
1166 - license: {
1167 - header: 'submit.progressbar.license',
1168 - config: '',
1169 - mandatory: true,
1170 - sectionType: 'license',
1171 - visibility: {
1172 - main: null,
1173 - other: 'READONLY'
1174 - },
1175 - collapsed: false,
1176 - enabled: true,
1177 - data: {},
1178 - errors: [],
1179 - isLoading: false,
1180 - isValid: false
1181 - } as any
1182 - },
1183 - isLoading: false,
1184 - savePending: false,
1185 - depositPending: false
1186 - }
1187 -});
1188 -
1189 1104 export const mockSectionsState = Object.assign({}, {
1190 1105 extraction: {
1191 1106 config: '',
1192 1107 mandatory: true,
1193 1108 sectionType: 'utils',
1194 1109 visibility: {
1195 1110 main: 'HIDDEN',
1196 1111 other: 'HIDDEN'
1197 1112 },
1198 1113 collapsed: false,

Everything looks good. We'll let you know here if there's anything you should know about.

Add shortcut