@opengeoweb/workspace 5.0.0 → 5.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +3 -4
- package/package.json +10 -10
package/index.js
CHANGED
|
@@ -19584,6 +19584,7 @@ var slice$2 = createSlice({
|
|
|
19584
19584
|
draft.id = '';
|
|
19585
19585
|
draft.title = workspacePreset.title;
|
|
19586
19586
|
draft["abstract"] = workspacePreset["abstract"];
|
|
19587
|
+
draft.scope = workspacePreset.scope;
|
|
19587
19588
|
draft.syncGroups = [];
|
|
19588
19589
|
},
|
|
19589
19590
|
setPreset: function setPreset(draft, action) {
|
|
@@ -36506,9 +36507,7 @@ var WorkspaceOptionsConnect = function WorkspaceOptionsConnect(_ref) {
|
|
|
36506
36507
|
setWorkspaceActionDialogOptions({
|
|
36507
36508
|
action: WorkspacePresetAction.SAVE_ALL,
|
|
36508
36509
|
presetId: workspaceId,
|
|
36509
|
-
formValues: Object.assign(
|
|
36510
|
-
scope: 'user'
|
|
36511
|
-
})
|
|
36510
|
+
formValues: Object.assign({}, workspaceData)
|
|
36512
36511
|
});
|
|
36513
36512
|
};
|
|
36514
36513
|
var onSave = React.useCallback(function () {
|
|
@@ -36653,7 +36652,7 @@ var WorkspacePresetsForm = function WorkspacePresetsForm(_ref) {
|
|
|
36653
36652
|
};
|
|
36654
36653
|
var hasFormInput = action === WorkspacePresetAction.DUPLICATE || action === WorkspacePresetAction.SAVE_AS || action === WorkspacePresetAction.SAVE_ALL;
|
|
36655
36654
|
// disable form inputs for 'save all' existing workspace preset
|
|
36656
|
-
var isDisabled =
|
|
36655
|
+
var isDisabled = action === WorkspacePresetAction.SAVE_ALL && formValues.id !== undefined && formValues.id !== '' && formValues.scope === 'user';
|
|
36657
36656
|
return /*#__PURE__*/React__default.createElement(React__default.Fragment, null, Boolean(error) && /*#__PURE__*/React__default.createElement(Box$2, {
|
|
36658
36657
|
sx: {
|
|
36659
36658
|
marginBottom: 2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@opengeoweb/workspace",
|
|
3
|
-
"version": "5.0.
|
|
3
|
+
"version": "5.0.1",
|
|
4
4
|
"description": "GeoWeb Workspace library for the opengeoweb project",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"repository": {
|
|
@@ -16,15 +16,15 @@
|
|
|
16
16
|
"@emotion/react": "11.10.6",
|
|
17
17
|
"@mui/material": "5.12.0",
|
|
18
18
|
"@mui/system": "5.12.0",
|
|
19
|
-
"@opengeoweb/api": "5.0.
|
|
20
|
-
"@opengeoweb/authentication": "5.0.
|
|
21
|
-
"@opengeoweb/core": "5.0.
|
|
22
|
-
"@opengeoweb/form-fields": "5.0.
|
|
23
|
-
"@opengeoweb/shared": "5.0.
|
|
24
|
-
"@opengeoweb/sigmet-airmet": "5.0.
|
|
25
|
-
"@opengeoweb/taf": "5.0.
|
|
26
|
-
"@opengeoweb/theme": "5.0.
|
|
27
|
-
"@opengeoweb/timeseries": "5.0.
|
|
19
|
+
"@opengeoweb/api": "5.0.1",
|
|
20
|
+
"@opengeoweb/authentication": "5.0.1",
|
|
21
|
+
"@opengeoweb/core": "5.0.1",
|
|
22
|
+
"@opengeoweb/form-fields": "5.0.1",
|
|
23
|
+
"@opengeoweb/shared": "5.0.1",
|
|
24
|
+
"@opengeoweb/sigmet-airmet": "5.0.1",
|
|
25
|
+
"@opengeoweb/taf": "5.0.1",
|
|
26
|
+
"@opengeoweb/theme": "5.0.1",
|
|
27
|
+
"@opengeoweb/timeseries": "5.0.1",
|
|
28
28
|
"@redux-eggs/core": "2.2.0",
|
|
29
29
|
"@redux-eggs/redux-toolkit": "2.2.0",
|
|
30
30
|
"@redux-eggs/saga-extension": "2.2.0",
|