Added functionality to remove the attachment icon when the event does not have one | added same style from home at agenda view

This commit is contained in:
Tiago Kayaya
2020-08-31 10:03:26 +01:00
parent 172f05ef99
commit 5d9b808e96
6 changed files with 25 additions and 17 deletions
+5 -3
View File
@@ -5,9 +5,11 @@
<ion-label>Sair</ion-label>
</ion-buttons>
<!-- customized TOGGLE button -->
<label class="switch"><input type="checkbox" id="togBtn">
<label class="switch">
<input type="checkbox" id="togBtn">
<div (click)="showAlert()">
<div class="slider round">
<!--ADDED HTML --><span (click)="showAlert()" class="mdgpr">MDGPR</span><span class="pr">PR</span><!--END-->
<!--ADDED HTML --><span class="mdgpr">MDGPR</span></div><span class="pr">PR</span><!--END-->
</div>
</label>
</ion-toolbar>
@@ -80,7 +82,7 @@
<div class="div-botton-middle">
<p class="item-list-small">{{event.Location}}</p>
</div>
<div class="div-botton-right">
<div *ngIf="event.HasAttachments" class="div-botton-right">
<ion-icon class="ion-icon-attach" slot="end" name="attach-outline"></ion-icon>
</div>
</div>
+1 -1
View File
@@ -152,7 +152,7 @@ ion-toolbar{
color: #666666;
font-size: 20px;
}
/* TOGGLE BUTTON */
.switch {
position: relative;
display: inline-block;
+1
View File
@@ -77,6 +77,7 @@ export class EventsPage implements OnInit {
.subscribe(response => {
this.eventsList = response;
this.showLoader = false;
console.log(response[0].HasAttachments)
}
);
break;