created UI for custom status length
This commit is contained in:
parent
2bc4393488
commit
62c5d42493
|
@ -9,21 +9,21 @@
|
||||||
|
|
||||||
<h4 class="my-account__label my-account__margin-top">manage list:</h4>
|
<h4 class="my-account__label my-account__margin-top">manage list:</h4>
|
||||||
<div class="my-account__link--margin-bottom" *ngFor="let list of availableLists">
|
<div class="my-account__link--margin-bottom" *ngFor="let list of availableLists">
|
||||||
<a href class="my-account__list--button" title="delete list"
|
<a href class="my-account__list--button" title="delete list" (click)="openCloseDeleteConfirmation(list, true)"
|
||||||
(click)="openCloseDeleteConfirmation(list, true)" *ngIf="!list.confirmDeletion">
|
*ngIf="!list.confirmDeletion">
|
||||||
<fa-icon class="my-account__link--icon" [icon]="faTrash"></fa-icon>
|
<fa-icon class="my-account__link--icon" [icon]="faTrash"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
<a href class="my-account__list--button" title="edit list"
|
<a href class="my-account__list--button" title="edit list" (click)="editList(list)"
|
||||||
(click)="editList(list)" *ngIf="!list.confirmDeletion">
|
*ngIf="!list.confirmDeletion">
|
||||||
<fa-icon class="my-account__link--icon" [icon]="faPenAlt"></fa-icon>
|
<fa-icon class="my-account__link--icon" [icon]="faPenAlt"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
<a href class="my-account__list--button" title="cancel"
|
<a href class="my-account__list--button" title="cancel" (click)="openCloseDeleteConfirmation(list, false)"
|
||||||
(click)="openCloseDeleteConfirmation(list, false)" *ngIf="list.confirmDeletion">
|
*ngIf="list.confirmDeletion">
|
||||||
<fa-icon class="my-account__link--icon" [icon]="faTimes"></fa-icon>
|
<fa-icon class="my-account__link--icon" [icon]="faTimes"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
<a href class="my-account__list--button my-account__red" title="delete list"
|
<a href class="my-account__list--button my-account__red" title="delete list" (click)="deleteList(list)"
|
||||||
(click)="deleteList(list)" *ngIf="list.confirmDeletion">
|
*ngIf="list.confirmDeletion">
|
||||||
<fa-icon class="my-account__link--icon" [icon]="faCheck"></fa-icon>
|
<fa-icon class="my-account__link--icon" [icon]="faCheck"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
|
|
||||||
|
@ -38,7 +38,16 @@
|
||||||
<a href class="my-account__list--button" title="create list" (click)="createList()">
|
<a href class="my-account__list--button" title="create list" (click)="createList()">
|
||||||
<fa-icon class="my-account__link--icon" [icon]="faPlus"></fa-icon>
|
<fa-icon class="my-account__link--icon" [icon]="faPlus"></fa-icon>
|
||||||
</a>
|
</a>
|
||||||
<input class="my-account__list--new-list-title" placeholder="new list title" [(ngModel)]="listTitle" (keyup.enter)="createList()" [disabled]="creationLoading"/>
|
<input class="my-account__list--new-list-title" placeholder="new list title" [(ngModel)]="listTitle"
|
||||||
|
(keyup.enter)="createList()" [disabled]="creationLoading" />
|
||||||
|
|
||||||
|
<h4 class="my-account__label my-account__margin-top">advanced settings:</h4>
|
||||||
|
<div class="advanced-settings">
|
||||||
|
<input class="advanced-settings__checkbox" [value]="customStatusLength" (change)="onCustomLengthChange()"
|
||||||
|
type="checkbox" name="customCharLength" value="customCharLength" id="customCharLength"> <label class="noselect advanced-settings__label" for="customCharLength">status'
|
||||||
|
custom length</label><br>
|
||||||
|
<input *ngIf="customStatusLength" class="themed-form advanced-settings__input" type="number" />
|
||||||
|
</div>
|
||||||
|
|
||||||
<h4 class="my-account__label my-account__margin-top">remove account from sengi:</h4>
|
<h4 class="my-account__label my-account__margin-top">remove account from sengi:</h4>
|
||||||
<a class="my-account__link my-account__red" href (click)="removeAccount()">
|
<a class="my-account__link my-account__red" href (click)="removeAccount()">
|
||||||
|
|
|
@ -103,3 +103,23 @@
|
||||||
margin-top: 25px;
|
margin-top: 25px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.advanced-settings {
|
||||||
|
position: relative;
|
||||||
|
|
||||||
|
&__checkbox{
|
||||||
|
position: relative;
|
||||||
|
top:3px;
|
||||||
|
left: 5px;
|
||||||
|
margin-right: 7px;
|
||||||
|
}
|
||||||
|
|
||||||
|
&__label {
|
||||||
|
|
||||||
|
|
||||||
|
}
|
||||||
|
|
||||||
|
&__input {
|
||||||
|
margin-left: 5px;
|
||||||
|
}
|
||||||
|
}
|
|
@ -24,6 +24,8 @@ export class MyAccountComponent implements OnInit, OnDestroy {
|
||||||
faCheck = faCheck;
|
faCheck = faCheck;
|
||||||
faTimes = faTimes;
|
faTimes = faTimes;
|
||||||
|
|
||||||
|
customStatusLength: boolean;
|
||||||
|
|
||||||
availableStreams: StreamWrapper[] = [];
|
availableStreams: StreamWrapper[] = [];
|
||||||
availableLists: StreamWrapper[] = [];
|
availableLists: StreamWrapper[] = [];
|
||||||
|
|
||||||
|
@ -58,6 +60,11 @@ export class MyAccountComponent implements OnInit, OnDestroy {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
onCustomLengthChange(): boolean {
|
||||||
|
this.customStatusLength = !this.customStatusLength;
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
private loadStreams(account: AccountWrapper){
|
private loadStreams(account: AccountWrapper){
|
||||||
const instance = account.info.instance;
|
const instance = account.info.instance;
|
||||||
this.availableStreams.length = 0;
|
this.availableStreams.length = 0;
|
||||||
|
|
|
@ -1,5 +1,5 @@
|
||||||
// @import "variables";
|
@import "variables";
|
||||||
// @import "commons";
|
@import "commons";
|
||||||
// @import "panel";
|
// @import "panel";
|
||||||
@import "buttons";
|
@import "buttons";
|
||||||
|
|
||||||
|
@ -172,18 +172,3 @@
|
||||||
margin: 0 5px;
|
margin: 0 5px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.noselect {
|
|
||||||
-webkit-touch-callout: none;
|
|
||||||
/* iOS Safari */
|
|
||||||
-webkit-user-select: none;
|
|
||||||
/* Safari */
|
|
||||||
-khtml-user-select: none;
|
|
||||||
/* Konqueror HTML */
|
|
||||||
-moz-user-select: none;
|
|
||||||
/* Firefox */
|
|
||||||
-ms-user-select: none;
|
|
||||||
/* Internet Explorer/Edge */
|
|
||||||
user-select: none;
|
|
||||||
/* Non-prefixed version, currently supported by Chrome and Opera */
|
|
||||||
}
|
|
|
@ -1,3 +1,23 @@
|
||||||
|
@import "variables";
|
||||||
|
|
||||||
|
.themed-form{
|
||||||
|
background-color: $column-color;
|
||||||
|
border: 1px $button-border-color solid;
|
||||||
|
padding: 2px 0 2px 5px;
|
||||||
|
// border-width: 1px;
|
||||||
|
color: #fff;
|
||||||
|
&:focus {
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
outline: 0px;
|
||||||
|
}
|
||||||
|
-webkit-box-shadow: none;
|
||||||
|
-moz-box-shadow: none;
|
||||||
|
box-shadow: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
.waiting-icon {
|
.waiting-icon {
|
||||||
width: 40px;
|
width: 40px;
|
||||||
display: block;
|
display: block;
|
||||||
|
|
Loading…
Reference in New Issue