[DEBUG] correct GUI display error

This commit is contained in:
Edouard DUPIN 2020-04-14 14:00:04 +02:00
parent ecbc1dc083
commit f6df685694
7 changed files with 25 additions and 11 deletions

View File

@ -17,8 +17,8 @@
</div>
<div class="fill-all colomn_mutiple" *ngIf="videos.length != 0">
<div class="sub-title">Videos:</div>
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data)" (auxclick)="onSelectVideo($event, data)">
<app-element-video [id_video]="data"></app-element-video>
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data.id)" (auxclick)="onSelectVideo($event, data.id)">
<app-element-video [id_video]="data.id"></app-element-video>
</div>
<div class="clear"></div>
</div>

View File

@ -12,8 +12,8 @@
{{description}}
</div>
<div class="fill-all colomn_mutiple">
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data)" (auxclick)="onSelectVideo($event, data)">
<app-element-video [id_video]="data"></app-element-video>
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data.id)" (auxclick)="onSelectVideo($event, data.id)">
<app-element-video [id_video]="data.id"></app-element-video>
</div>
<div class="clear"></div>
</div>

View File

@ -15,7 +15,7 @@
<div class="clear"></div>
</div>
<div class="fill-all colomn_mutiple">
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data)" (auxclick)="onSelectVideo($event, data)">
<div *ngFor="let data of videos" class="item item-video" (click)="onSelectVideo($event, data.id)" (auxclick)="onSelectVideo($event, data.id)">
<app-element-video [id_video]="data.id"></app-element-video>
</div>
<div class="clear"></div>

View File

@ -77,7 +77,8 @@ export class GroupService {
return new Promise((resolve, reject) => {
self.bdd.getVideo()
.then(function(response) {
let data = response.gets_where([["==", "serie_id", _id], ["==", "saison_id", null]], ["id"], ["episode", "name"])
//let data = response.gets_where([["==", "serie_id", _id], ["==", "saison_id", null]], ["id"], ["episode", "name"])
let data = response.gets_where([["==", "serie_id", _id], ["==", "saison_id", null]], undefined, ["episode", "name"])
resolve(data);
}).catch(function(response) {
reject(response);

View File

@ -43,7 +43,8 @@ export class SaisonService {
return new Promise((resolve, reject) => {
self.bdd.getVideo()
.then(function(response) {
let data = response.gets_where([["==", "saison_id", _id]], ["id"], ["episode", "name"])
//let data = response.gets_where([["==", "saison_id", _id]], ["id", "name", "episode"], ["episode", "name"])
let data = response.gets_where([["==", "saison_id", _id]], undefined, ["episode", "name"])
resolve(data);
}).catch(function(response) {
reject(response);
@ -58,7 +59,8 @@ export class SaisonService {
return new Promise((resolve, reject) => {
self.bdd.getVideo()
.then(function(response) {
let data = response.gets_where([["==", "saison_id", _id]], ["id"], ["episode", "name"])
//let data = response.gets_where([["==", "saison_id", _id]], ["id", "name", "episode"], ["episode", "name"])
let data = response.gets_where([["==", "saison_id", _id]], undefined, ["episode", "name"])
resolve(data.length);
}).catch(function(response) {
reject(response);

View File

@ -74,8 +74,19 @@ export class TypeService {
return new Promise((resolve, reject) => {
self.bdd.getVideo()
.then(function(response) {
let data = response.gets_where([["==", "type_id", _id], ["==", "serie_id", null], ["==", "univers_id", null]], ["id"], ["name"]);
if (_select.length == 0) {
let data = response.gets_where([["==", "type_id", _id], ["==", "serie_id", null], ["==", "univers_id", null]], undefined, ["name"]);
resolve(data);
return;
}
if (_select[0] == "*") {
let data = response.gets_where([["==", "type_id", _id], ["==", "serie_id", null], ["==", "univers_id", null]], undefined, ["name"]);
resolve(data);
return;
}
let data = response.gets_where([["==", "type_id", _id], ["==", "serie_id", null], ["==", "univers_id", null]], _select, ["name"]);
resolve(data);
return;
}).catch(function(response) {
reject(response);
});

View File

@ -6,8 +6,8 @@
export const environment = {
production: false,
// URL of development API
apiUrl: 'http://localhost:15080',
//apiUrl: 'http://192.168.1.157/karideo/api',
//apiUrl: 'http://localhost:15080',
apiUrl: 'http://192.168.1.156/karideo/api',
frontBaseUrl: '',
//apiMode: "QUERRY"
apiMode: "REWRITE",