Browse Source

Bugfixes

pull/169/head
Sebastian Stehle 9 years ago
parent
commit
35d298127e
  1. 4
      src/Squidex.Domain.Apps.Read/State/Orleans/Grains/Implementations/AppStateGrainState_Rules.cs
  2. 4
      src/Squidex.Domain.Apps.Read/State/Orleans/Grains/Implementations/AppStateGrainState_Schemas.cs
  3. 4
      src/Squidex/app/framework/angular/animations.ts
  4. 2
      src/Squidex/app/framework/angular/file-drop.directive.ts
  5. 2
      src/Squidex/app/framework/services/analytics.service.ts
  6. 2
      src/Squidex/app/framework/services/local-cache.service.ts
  7. 2
      src/Squidex/app/framework/utils/types.ts

4
src/Squidex.Domain.Apps.Read/State/Orleans/Grains/Implementations/AppStateGrainState_Rules.cs

@ -54,7 +54,9 @@ namespace Squidex.Domain.Apps.Read.State.Orleans.Grains.Implementations
private void UpdateRule(RuleEvent @event, EnvelopeHeaders headers, Action<JsonRuleEntity> updater = null) private void UpdateRule(RuleEvent @event, EnvelopeHeaders headers, Action<JsonRuleEntity> updater = null)
{ {
Rules[@event.RuleId] = Rules[@event.RuleId].Clone().Update(@event, headers, updater); var id = @event.RuleId;
Rules[id] = Rules[id].Clone().Update(@event, headers, updater);
} }
} }
} }

4
src/Squidex.Domain.Apps.Read/State/Orleans/Grains/Implementations/AppStateGrainState_Schemas.cs

@ -151,7 +151,9 @@ namespace Squidex.Domain.Apps.Read.State.Orleans.Grains.Implementations
private void UpdateSchema(SchemaEvent @event, EnvelopeHeaders headers, Action<JsonSchemaEntity> updater = null) private void UpdateSchema(SchemaEvent @event, EnvelopeHeaders headers, Action<JsonSchemaEntity> updater = null)
{ {
Schemas[@event.SchemaId.Id].Clone().Update(@event, headers, updater); var id = @event.SchemaId.Id;
Schemas[id] = Schemas[id].Clone().Update(@event, headers, updater);
} }
} }
} }

4
src/Squidex/app/framework/angular/animations.ts

@ -81,7 +81,7 @@ export function buildFadeAnimation(name = 'fade', timing = '150ms'): AnimationEn
transition('0 => 1', animate(timing)) transition('0 => 1', animate(timing))
] ]
); );
}; }
export function buildHeightAnimation(name = 'height', timing = '200ms'): AnimationEntryMetadata { export function buildHeightAnimation(name = 'height', timing = '200ms'): AnimationEntryMetadata {
return trigger( return trigger(
@ -104,7 +104,7 @@ export function buildHeightAnimation(name = 'height', timing = '200ms'): Animati
transition('0 => 1', animate(timing)) transition('0 => 1', animate(timing))
] ]
); );
}; }
export const fadeAnimation = buildFadeAnimation(); export const fadeAnimation = buildFadeAnimation();
export const heightAnimation = buildHeightAnimation(); export const heightAnimation = buildHeightAnimation();

2
src/Squidex/app/framework/angular/file-drop.directive.ts

@ -100,7 +100,7 @@ export class FileDropDirective {
function isFunction(obj: any): boolean { function isFunction(obj: any): boolean {
return !!(obj && obj.constructor && obj.call && obj.apply); return !!(obj && obj.constructor && obj.call && obj.apply);
}; }
interface DragDropEvent extends MouseEvent { interface DragDropEvent extends MouseEvent {
readonly dataTransfer: DataTransfer; readonly dataTransfer: DataTransfer;

2
src/Squidex/app/framework/services/analytics.service.ts

@ -15,7 +15,7 @@ import { ResourceLoaderService } from './resource-loader.service';
export const AnalyticsServiceFactory = (analyticsId: AnalyticsIdConfig, router: Router, resourceLoader: ResourceLoaderService) => { export const AnalyticsServiceFactory = (analyticsId: AnalyticsIdConfig, router: Router, resourceLoader: ResourceLoaderService) => {
return new AnalyticsService(analyticsId, router, resourceLoader); return new AnalyticsService(analyticsId, router, resourceLoader);
} };
@Injectable() @Injectable()
export class AnalyticsService { export class AnalyticsService {

2
src/Squidex/app/framework/services/local-cache.service.ts

@ -7,7 +7,7 @@
import { Injectable } from '@angular/core'; import { Injectable } from '@angular/core';
interface Entry { value: any, expires: number }; interface Entry { value: any; expires: number; }
export const LocalCacheServiceFactory = () => { export const LocalCacheServiceFactory = () => {
return new LocalCacheService(); return new LocalCacheService();

2
src/Squidex/app/framework/utils/types.ts

@ -28,7 +28,7 @@ export module Types {
export function isBoolean(value: any): boolean { export function isBoolean(value: any): boolean {
return typeof value === 'boolean'; return typeof value === 'boolean';
}; }
export function isNull(value: any): boolean { export function isNull(value: any): boolean {
return value === null; return value === null;

Loading…
Cancel
Save