@eeacms/volto-clms-theme 1.0.193 → 1.0.195

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/CHANGELOG.md CHANGED
@@ -4,11 +4,18 @@ All notable changes to this project will be documented in this file. Dates are d
4
4
 
5
5
  Generated by [`auto-changelog`](https://github.com/CookPete/auto-changelog).
6
6
 
7
- ### [1.0.193](https://github.com/eea/volto-clms-theme/compare/1.0.192...1.0.193) - 30 March 2023
7
+ ### [1.0.195](https://github.com/eea/volto-clms-theme/compare/1.0.194...1.0.195) - 31 March 2023
8
8
 
9
- #### :bug: Bug Fixes
9
+ #### :hammer_and_wrench: Others
10
+
11
+ - downgrade volto-tableau [Mikel Larreategi - [`0c67fca`](https://github.com/eea/volto-clms-theme/commit/0c67fca53ea0e1c158edbf3b27987c1354eb3e43)]
12
+ ### [1.0.194](https://github.com/eea/volto-clms-theme/compare/1.0.193...1.0.194) - 30 March 2023
10
13
 
11
- - fix: CLMS-2010 format days with 2 digits [Mikel Larreategi - [`5ada4b5`](https://github.com/eea/volto-clms-theme/commit/5ada4b51ea0442219d190ab523a2b9e0b81a3d37)]
14
+ #### :rocket: New Features
15
+
16
+ - feat: CLMS-1880 hide the button when the subscription/unsubscription process finishes and show a different message [Mikel Larreategi - [`6c93f0b`](https://github.com/eea/volto-clms-theme/commit/6c93f0b7d6661345d88a21f8633b4af65401b1f9)]
17
+
18
+ ### [1.0.193](https://github.com/eea/volto-clms-theme/compare/1.0.192...1.0.193) - 30 March 2023
12
19
 
13
20
  ### [1.0.192](https://github.com/eea/volto-clms-theme/compare/1.0.191...1.0.192) - 27 March 2023
14
21
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eeacms/volto-clms-theme",
3
- "version": "1.0.193",
3
+ "version": "1.0.195",
4
4
  "description": "volto-clms-theme: Volto theme for CLMS site",
5
5
  "main": "src/index.js",
6
6
  "author": "CodeSyntax for the European Environment Agency",
@@ -42,7 +42,7 @@
42
42
  "@eeacms/volto-metadata-block": "5.0.1",
43
43
  "@eeacms/volto-react-table-widget": "0.1.3",
44
44
  "@eeacms/volto-resize-helper": "1.0.1",
45
- "@eeacms/volto-tableau": "3.0.6",
45
+ "@eeacms/volto-tableau": "1.3.0",
46
46
  "@eeacms/volto-tabs-block": "3.0.1",
47
47
  "@eeacms/volto-taxonomy": "3.0.1",
48
48
  "@fortawesome/fontawesome-svg-core": "1.2.35",
@@ -20,6 +20,11 @@ const messages = defineMessages({
20
20
  defaultMessage:
21
21
  'Click on the button below to confirm your {subscribe_or_unsubscribe}',
22
22
  },
23
+ process_finished: {
24
+ id: 'Your {subscribe_or_unsubscribe} request was processed correctly',
25
+ defaultMessage:
26
+ 'Your {subscribe_or_unsubscribe} request was processed correctly',
27
+ },
23
28
  errorMessage: {
24
29
  id: 'An error has occured. Please try again',
25
30
  defaultMessage: 'An error has occured. Please try again',
@@ -44,6 +49,7 @@ class ConfirmSubscriptionView extends Component {
44
49
  this.handlePost = this.handlePost.bind(this);
45
50
  this.state = {
46
51
  type_conf: null,
52
+ action_completed: false,
47
53
  };
48
54
  }
49
55
 
@@ -52,6 +58,7 @@ class ConfirmSubscriptionView extends Component {
52
58
  this.setState({ type_conf });
53
59
  }
54
60
  requestSuccessToast = () => {
61
+ this.setState({ action_completed: true });
55
62
  toast.success(
56
63
  <Toast
57
64
  success
@@ -115,20 +122,36 @@ class ConfirmSubscriptionView extends Component {
115
122
  : 'subscription',
116
123
  })}
117
124
  </h1>
118
- <div className="event-detail">
119
- <div className="event-detail-content">
120
- <p>
121
- {this.props.intl.formatMessage(messages.description, {
122
- subscribe_or_unsubscribe: this.props.isUnsubscribe
123
- ? 'unsubscription'
124
- : 'subscription',
125
- })}
126
- </p>
125
+ {this.state.action_completed ? (
126
+ <div className="event-detail">
127
+ <div className="event-detail-content">
128
+ <p>
129
+ {this.props.intl.formatMessage(messages.process_finished, {
130
+ subscribe_or_unsubscribe: this.props.isUnsubscribe
131
+ ? 'unsubscription'
132
+ : 'subscription',
133
+ })}
134
+ </p>
135
+ </div>
127
136
  </div>
128
- </div>
129
- <CclButton onClick={this.handlePost}>
130
- <ButtonText loading={this.props.loading} />
131
- </CclButton>
137
+ ) : (
138
+ <>
139
+ <div className="event-detail">
140
+ <div className="event-detail-content">
141
+ <p>
142
+ {this.props.intl.formatMessage(messages.description, {
143
+ subscribe_or_unsubscribe: this.props.isUnsubscribe
144
+ ? 'unsubscription'
145
+ : 'subscription',
146
+ })}
147
+ </p>
148
+ </div>
149
+ </div>
150
+ <CclButton onClick={this.handlePost}>
151
+ <ButtonText loading={this.props.loading} />
152
+ </CclButton>
153
+ </>
154
+ )}
132
155
  </div>
133
156
  ) : (
134
157
  <NotFound />