Skip to content

Commit

Permalink
Merge branch 'master' into apim-3130-align-folder-arrows-in-documenta…
Browse files Browse the repository at this point in the history
…tion
  • Loading branch information
jourdiw authored Nov 3, 2023
2 parents ff97272 + c61a77f commit fa8bd6e
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 3 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# [3.45.0](https://github.com/gravitee-io/gravitee-ui-components/compare/v3.44.0...v3.45.0) (2023-10-26)


### Features

* expose validate fn to force form validation ([052f747](https://github.com/gravitee-io/gravitee-ui-components/commit/052f747eb3198f16b74e53aecdfd137475fbeb56))

# [3.44.0](https://github.com/gravitee-io/gravitee-ui-components/compare/v3.43.0...v3.44.0) (2023-07-05)


Expand Down
7 changes: 4 additions & 3 deletions src/policy-studio/gv-design/gv-design.js
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,10 @@ export class GvDesign extends KeyboardElement(LitElement) {
await this._setCurrentFlowStep(null, null, force);
}

async validate() {
return this._askToValidateForms();
}

async _askToValidateForms() {
if (this._currentAskConfirmation == null) {
this._currentAskConfirmation = true;
Expand Down Expand Up @@ -1293,9 +1297,6 @@ export class GvDesign extends KeyboardElement(LitElement) {

saved() {
if (this.isDirty) {
this._initialDefinition = deepClone(this._definitionSaved);
this._definition = deepClone(this._definitionSaved);
this._definitionSaved = null;
this.isDirty = false;
this._checkCurrentFlowStep();
this.definedPlans.forEach((plan) => {
Expand Down

0 comments on commit fa8bd6e

Please sign in to comment.