[DEBUG] correct GUI display error
This commit is contained in:
parent
ecbc1dc083
commit
f6df685694
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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>
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
|
@ -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);
|
||||
});
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user