@veloceapps/sdk 8.0.0-134 → 8.0.0-135

Sign up to get free protection for your applications and to get access to all the features.
@@ -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) {