+
-
{{ dialogData.title }}
+ {{ dialogData.title }}
-
+
-
-
+
+
diff --git a/vripper-ui/src/app/photos/photos.component.scss b/vripper-ui/src/app/photos/photos.component.scss
index 171b582..65f3a34 100644
--- a/vripper-ui/src/app/photos/photos.component.scss
+++ b/vripper-ui/src/app/photos/photos.component.scss
@@ -1,9 +1,9 @@
$cell-space: 8px;
.title-cell {
- margin-right: $cell-space;
+ margin-right: $cell-space;
}
.progress-cell {
- margin-left: $cell-space;
-}
\ No newline at end of file
+ margin-left: $cell-space;
+}
diff --git a/vripper-ui/src/app/photos/photos.component.ts b/vripper-ui/src/app/photos/photos.component.ts
index 7b681dd..61d2e2f 100644
--- a/vripper-ui/src/app/photos/photos.component.ts
+++ b/vripper-ui/src/app/photos/photos.component.ts
@@ -17,6 +17,9 @@ import {ElectronService} from 'ngx-electron';
})
export class PhotosComponent implements OnInit, OnDestroy {
+ gridOptions: GridOptions;
+ dataSource: PhotosDatasource;
+
constructor(
public dialogRef: MatDialogRef
,
@Inject(MAT_DIALOG_DATA) public dialogData: Post,
@@ -79,9 +82,6 @@ export class PhotosComponent implements OnInit, OnDestroy {
}
- gridOptions: GridOptions;
- dataSource: PhotosDatasource;
-
ngOnInit() {
}
diff --git a/vripper-ui/src/app/photos/photos.datasource.ts b/vripper-ui/src/app/photos/photos.datasource.ts
index 45dce8a..2032cca 100644
--- a/vripper-ui/src/app/photos/photos.datasource.ts
+++ b/vripper-ui/src/app/photos/photos.datasource.ts
@@ -4,6 +4,9 @@ import {WsConnectionService} from '../services/ws-connection.service';
import {NgZone} from '@angular/core';
export class PhotosDatasource {
+ subscriptions: Subscription[] = [];
+ postDetailsSub: Subscription;
+
constructor(
private ws: WsConnectionService,
private gridOptions: GridOptions,
@@ -12,9 +15,6 @@ export class PhotosDatasource {
) {
}
- subscriptions: Subscription[] = [];
- postDetailsSub: Subscription;
-
connect() {
this.postDetailsSub = this.ws.postDetails$(this.postId).subscribe(e => {
this.zone.run(() => {
diff --git a/vripper-ui/src/app/posts/alternative-title/alternative-title.component.html b/vripper-ui/src/app/posts/alternative-title/alternative-title.component.html
index 3676d6f..77e8c06 100644
--- a/vripper-ui/src/app/posts/alternative-title/alternative-title.component.html
+++ b/vripper-ui/src/app/posts/alternative-title/alternative-title.component.html
@@ -1,8 +1,8 @@
-
-
Alternative title
+
+
Alternative title
-
-
-
-