fixed bugs found creating demo video
This commit is contained in:
parent
1290ff2c40
commit
73bc46ae4a
|
@ -67,7 +67,7 @@
|
||||||
</select>
|
</select>
|
||||||
<div class="subtext">{{'deletionDateDesc' | i18n}}</div>
|
<div class="subtext">{{'deletionDateDesc' | i18n}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-row" *ngIf="deletionDateSelect === 0">
|
<div class="box-content-row" *ngIf="deletionDateSelect === 0 && !editMode">
|
||||||
<input id="deletionDateCustom" type="datetime-local" name="deletionDate"
|
<input id="deletionDateCustom" type="datetime-local" name="deletionDate"
|
||||||
[(ngModel)]="deletionDate" required placeholder="MM/DD/YYYY HH:MM AM/PM" [readOnly]="disableSend">
|
[(ngModel)]="deletionDate" required placeholder="MM/DD/YYYY HH:MM AM/PM" [readOnly]="disableSend">
|
||||||
</div>
|
</div>
|
||||||
|
@ -80,7 +80,7 @@
|
||||||
</select>
|
</select>
|
||||||
<div class="subtext">{{'expirationDateDesc' | i18n}}</div>
|
<div class="subtext">{{'expirationDateDesc' | i18n}}</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="box-content-row" *ngIf="expirationDateSelect === 0">
|
<div class="box-content-row" *ngIf="expirationDateSelect === 0 && !editMode">
|
||||||
<input id="expirationDateCustom" type="datetime-local" name="expirationDate"
|
<input id="expirationDateCustom" type="datetime-local" name="expirationDate"
|
||||||
[(ngModel)]="expirationDate" required placeholder="MM/DD/YYYY HH:MM AM/PM" [readOnly]="disableSend">
|
[(ngModel)]="expirationDate" required placeholder="MM/DD/YYYY HH:MM AM/PM" [readOnly]="disableSend">
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -26,11 +26,10 @@ export class AddEditComponent extends BaseAddEditComponent {
|
||||||
}
|
}
|
||||||
|
|
||||||
async refresh() {
|
async refresh() {
|
||||||
|
this.password = null;
|
||||||
const send = await this.loadSend();
|
const send = await this.loadSend();
|
||||||
this.send = await send.decrypt();
|
this.send = await send.decrypt();
|
||||||
|
|
||||||
this.hasPassword = this.send.password != null && this.send.password.trim() !== '';
|
this.hasPassword = this.send.password != null && this.send.password.trim() !== '';
|
||||||
|
|
||||||
this.deletionDate = this.dateToString(this.send.deletionDate);
|
this.deletionDate = this.dateToString(this.send.deletionDate);
|
||||||
this.expirationDate = this.dateToString(this.send.expirationDate);
|
this.expirationDate = this.dateToString(this.send.expirationDate);
|
||||||
}
|
}
|
||||||
|
|
|
@ -43,7 +43,7 @@
|
||||||
[infiniteScrollContainer]="'#items .content'" [fromRoot]="true" (scrolled)="loadMore()">
|
[infiniteScrollContainer]="'#items .content'" [fromRoot]="true" (scrolled)="loadMore()">
|
||||||
<a *ngFor="let s of filteredSends" appStopClick (click)="selectSend(s.id)"
|
<a *ngFor="let s of filteredSends" appStopClick (click)="selectSend(s.id)"
|
||||||
href="#" title="{{'viewItem' | i18n}}"
|
href="#" title="{{'viewItem' | i18n}}"
|
||||||
[ngClass]="{'active': s.id === activeSendId}">
|
[ngClass]="{'active': s.id === sendId}">
|
||||||
<div class="icon" aria-hidden="true">
|
<div class="icon" aria-hidden="true">
|
||||||
<i class="fa fa-fw fa-lg" [ngClass]="s.type == 0 ? 'fa-file-o' : 'fa-file-text-o'"></i>
|
<i class="fa fa-fw fa-lg" [ngClass]="s.type == 0 ? 'fa-file-o' : 'fa-file-text-o'"></i>
|
||||||
</div>
|
</div>
|
||||||
|
@ -68,7 +68,7 @@
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<app-send-add-edit id="addEdit" class="details" *ngIf="action == 'add' || action == 'edit'" [sendId]="sendId" [type]="selectedSendType"
|
<app-send-add-edit id="addEdit" class="details" *ngIf="action == 'add' || action == 'edit'" [sendId]="sendId" [type]="selectedSendType"
|
||||||
(onSavedSend)="refresh()" (onCancelled)="cancel()"></app-send-add-edit>
|
(onSavedSend)="savedSend($event)" (onCancelled)="cancel($event)" (onDeletedSend)="deletedSend($event)"></app-send-add-edit>
|
||||||
<div class="logo" *ngIf="!action">
|
<div class="logo" *ngIf="!action">
|
||||||
<div class="content">
|
<div class="content">
|
||||||
<div class="inner-content">
|
<div class="inner-content">
|
||||||
|
|
|
@ -91,8 +91,20 @@ export class SendComponent extends BaseSendComponent implements OnInit, OnDestro
|
||||||
this.sendId = null;
|
this.sendId = null;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
async deletedSend(s: SendView) {
|
||||||
|
await this.refresh();
|
||||||
|
this.action = Action.None;
|
||||||
|
this.sendId = null;
|
||||||
|
}
|
||||||
|
|
||||||
|
async savedSend(s: SendView) {
|
||||||
|
console.log(s);
|
||||||
|
await this.refresh();
|
||||||
|
this.selectSend(s.id);
|
||||||
|
}
|
||||||
|
|
||||||
async selectSend(sendId: string) {
|
async selectSend(sendId: string) {
|
||||||
if (sendId === this.sendId) {
|
if (sendId === this.sendId && this.action === Action.Edit) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
this.action = Action.Edit;
|
this.action = Action.Edit;
|
||||||
|
|
|
@ -102,7 +102,7 @@
|
||||||
&:hover, &:focus, &.active {
|
&:hover, &:focus, &.active {
|
||||||
@include themify($themes) {
|
@include themify($themes) {
|
||||||
background-color: themed('boxBackgroundHoverColor');
|
background-color: themed('boxBackgroundHoverColor');
|
||||||
textarea {
|
> * {
|
||||||
background-color: themed('boxBackgroundHoverColor');
|
background-color: themed('boxBackgroundHoverColor');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -169,7 +169,7 @@
|
||||||
&.box-content-row-multi {
|
&.box-content-row-multi {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
|
|
||||||
input:not([type="checkbox"]):not([type="checkbox"]) {
|
input:not([type="checkbox"]):not([type="radio"]) {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -251,8 +251,8 @@
|
||||||
}
|
}
|
||||||
|
|
||||||
&.box-content-row-radio {
|
&.box-content-row-radio {
|
||||||
display: grid;
|
display: flex;
|
||||||
grid-template-columns: 1fr;
|
flex-direction: column;
|
||||||
.item {
|
.item {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex: 1;
|
flex: 1;
|
||||||
|
|
Loading…
Reference in New Issue