@sprucelabs/spruce-form-utils 16.1.2 → 16.1.3

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.
@@ -72,6 +72,7 @@ class FormPlayerCardViewController extends heartwood_view_controllers_1.Abstract
72
72
  }
73
73
  return {
74
74
  buttons,
75
+ isSticky: true,
75
76
  };
76
77
  }
77
78
  async handleClickSaveProgress() {
@@ -82,14 +83,14 @@ class FormPlayerCardViewController extends heartwood_view_controllers_1.Abstract
82
83
  }
83
84
  async handleClickSaveAndDone() {
84
85
  var _a, _b;
85
- await this.alert({
86
- message: `Progress saved, lets get outa here! 🚀`,
87
- style: 'success',
88
- });
89
86
  if (this.onSaveAndBeDoneHandler) {
90
87
  await ((_a = this.onSaveAndBeDoneHandler) === null || _a === void 0 ? void 0 : _a.call(this));
91
88
  return;
92
89
  }
90
+ await this.alert({
91
+ message: `Progress saved, lets get outa here! 🚀`,
92
+ style: 'success',
93
+ });
93
94
  await ((_b = this.router) === null || _b === void 0 ? void 0 : _b.redirect('profile.root'));
94
95
  }
95
96
  async handleClickNext() {
@@ -79,6 +79,7 @@ class FormPlayerCardViewController extends AbstractViewController {
79
79
  }
80
80
  return {
81
81
  buttons,
82
+ isSticky: true,
82
83
  };
83
84
  }
84
85
  handleClickSaveProgress() {
@@ -92,14 +93,14 @@ class FormPlayerCardViewController extends AbstractViewController {
92
93
  handleClickSaveAndDone() {
93
94
  var _a, _b;
94
95
  return __awaiter(this, void 0, void 0, function* () {
95
- yield this.alert({
96
- message: `Progress saved, lets get outa here! 🚀`,
97
- style: 'success',
98
- });
99
96
  if (this.onSaveAndBeDoneHandler) {
100
97
  yield ((_a = this.onSaveAndBeDoneHandler) === null || _a === void 0 ? void 0 : _a.call(this));
101
98
  return;
102
99
  }
100
+ yield this.alert({
101
+ message: `Progress saved, lets get outa here! 🚀`,
102
+ style: 'success',
103
+ });
103
104
  yield ((_b = this.router) === null || _b === void 0 ? void 0 : _b.redirect('profile.root'));
104
105
  });
105
106
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@sprucelabs/spruce-form-utils",
3
3
  "description": "Support for working with forms and Sprucebot. 📄",
4
- "version": "16.1.2",
4
+ "version": "16.1.3",
5
5
  "skill": {
6
6
  "namespace": "forms"
7
7
  },