implemented icon buttons, array input, reformatting, minor sample component improvements

This commit is contained in:
VLE2FE
2020-07-30 11:33:56 +02:00
parent 4876ba3c0c
commit a4ed8888e6
12 changed files with 326 additions and 178 deletions

View File

@ -33,8 +33,6 @@ export class LoginService implements CanActivate {
login(username = '', password = '') {
return new Promise(resolve => {
console.log(username);
console.log(password);
if (username !== '' || password !== '') { // some credentials given
let credentials: string[];
const credentialString: string = this.storage.get('basicAuth');
@ -54,7 +52,6 @@ export class LoginService implements CanActivate {
this.storage.set('basicAuth', btoa(credentials[0] + ':' + password));
}
}
console.log(this.storage.get('basicAuth'));
this.api.get('/authorized', (data: any, error) => {
if (!error) {
if (data.status === 'Authorization successful') {