user token output modal partly done

parent 84bc2f6a
<div class="modal-header">
<h5 class="modal-title">Bonustoken</h5>
<button (click)="dismiss()"
aria-label="Close"
class="close cursor-pointer"
data-dismiss="modal"
type="button">
<span aria-hidden="true">&times;</span>
</button>
</div>
<div class="modal-body">
<p>Mit diesem Token kann dir der Quizleiter dein Ergebnis zuordnen.</p>
<p>Mit diesem Token kann dir der Quizleiter dein Ergebnis zuordnen.</p>
</div>
<div class="modal-footer">
<button (click)="clipboard()"
aria-label="Copy to clipboard"
class="btn btn-primary"
type="button">
<span aria-hidden="true">Zwischenablage</span>
</button>
<!--<button type="button" class="btn btn-primary" >Zwischenablage</button>-->
<button (click)="email()"
aria-label="Send token via Email"
class="btn btn-primary"
type="button">
<span aria-hidden="true">Email</span>
</button>
<!--<button type="button" class="btn btn-primary">Email</button>-->
</div>
import { Component} from '@angular/core';
import {Component} from '@angular/core';
import {NgbActiveModal} from '@ng-bootstrap/ng-bootstrap';
@Component({
selector: 'app-user-token',
templateUrl: './user-token.component.html',
styleUrls: ['./user-token.component.scss']
selector: 'app-user-token',
templateUrl: './user-token.component.html',
styleUrls: ['./user-token.component.scss']
})
export class UserTokenComponent {
constructor(private activeModal: NgbActiveModal) { }
constructor(private activeModal: NgbActiveModal) {
}
public confirm(): void {
this.activeModal.close();
}
public dismiss(): void {
this.activeModal.dismiss();
}
public abort(): void {
this.activeModal.dismiss();
}
public clipboard(): void {
alert('TODO');
}
public email(): void {
window.location.href = 'mailto:user@example.com?subject=BonusToken&body=' + 'token';
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment