@veloceapps/sdk 8.0.0-134 → 8.0.0-135

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.
@@ -103,16 +103,17 @@ class ContextService {
103
103
  return this.resolve().properties.mode;
104
104
  }
105
105
  get isEditMode$() {
106
- return this.resolve$().pipe(map(() => {
107
- const context = this.resolve();
108
- if (context.mode === ConfigurationContextMode.ACCOUNT) {
109
- return true;
110
- }
111
- if (context.mode === ConfigurationContextMode.QUOTE) {
112
- return context.properties.Status === 'Draft';
113
- }
114
- return false;
115
- }));
106
+ return this.resolve$().pipe(map(() => this.isEditMode));
107
+ }
108
+ get isEditMode() {
109
+ const context = this.resolve();
110
+ if (context.mode === ConfigurationContextMode.ACCOUNT) {
111
+ return true;
112
+ }
113
+ if (context.mode === ConfigurationContextMode.QUOTE) {
114
+ return context.properties.Status === 'Draft';
115
+ }
116
+ return false;
116
117
  }
117
118
  resolve() {
118
119
  if (!this.context.value) {