[DEBUG] correct GUI display error
This commit is contained in:
parent
ecbc1dc083
commit
f6df685694
@ -17,8 +17,8 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="fill-all colomn_mutiple" *ngIf="videos.length != 0">
|
<div class="fill-all colomn_mutiple" *ngIf="videos.length != 0">
|
||||||
<div class="sub-title">Videos:</div>
|
<div class="sub-title">Videos:</div>
|
||||||
<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"></app-element-video>
|
<app-element-video [id_video]="data.id"></app-element-video>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -12,8 +12,8 @@
|
|||||||
{{description}}
|
{{description}}
|
||||||
</div>
|
</div>
|
||||||
<div class="fill-all colomn_mutiple">
|
<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"></app-element-video>
|
<app-element-video [id_video]="data.id"></app-element-video>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="fill-all colomn_mutiple">
|
<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>
|
<app-element-video [id_video]="data.id"></app-element-video>
|
||||||
</div>
|
</div>
|
||||||
<div class="clear"></div>
|
<div class="clear"></div>
|
||||||
|
@ -77,7 +77,8 @@ export class GroupService {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
self.bdd.getVideo()
|
self.bdd.getVideo()
|
||||||
.then(function(response) {
|
.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);
|
resolve(data);
|
||||||
}).catch(function(response) {
|
}).catch(function(response) {
|
||||||
reject(response);
|
reject(response);
|
||||||
|
@ -43,7 +43,8 @@ export class SaisonService {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
self.bdd.getVideo()
|
self.bdd.getVideo()
|
||||||
.then(function(response) {
|
.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);
|
resolve(data);
|
||||||
}).catch(function(response) {
|
}).catch(function(response) {
|
||||||
reject(response);
|
reject(response);
|
||||||
@ -58,7 +59,8 @@ export class SaisonService {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
self.bdd.getVideo()
|
self.bdd.getVideo()
|
||||||
.then(function(response) {
|
.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);
|
resolve(data.length);
|
||||||
}).catch(function(response) {
|
}).catch(function(response) {
|
||||||
reject(response);
|
reject(response);
|
||||||
|
@ -74,8 +74,19 @@ export class TypeService {
|
|||||||
return new Promise((resolve, reject) => {
|
return new Promise((resolve, reject) => {
|
||||||
self.bdd.getVideo()
|
self.bdd.getVideo()
|
||||||
.then(function(response) {
|
.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);
|
resolve(data);
|
||||||
|
return;
|
||||||
}).catch(function(response) {
|
}).catch(function(response) {
|
||||||
reject(response);
|
reject(response);
|
||||||
});
|
});
|
||||||
|
@ -6,8 +6,8 @@
|
|||||||
export const environment = {
|
export const environment = {
|
||||||
production: false,
|
production: false,
|
||||||
// URL of development API
|
// URL of development API
|
||||||
apiUrl: 'http://localhost:15080',
|
//apiUrl: 'http://localhost:15080',
|
||||||
//apiUrl: 'http://192.168.1.157/karideo/api',
|
apiUrl: 'http://192.168.1.156/karideo/api',
|
||||||
frontBaseUrl: '',
|
frontBaseUrl: '',
|
||||||
//apiMode: "QUERRY"
|
//apiMode: "QUERRY"
|
||||||
apiMode: "REWRITE",
|
apiMode: "REWRITE",
|
||||||
|
Loading…
Reference in New Issue
Block a user