Skip to content

Commit

Permalink
Freitag 10:10
Browse files Browse the repository at this point in the history
  • Loading branch information
Peter Hornburger committed Oct 11, 2024
1 parent 584238b commit bba9cee
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ export class AppComponent implements OnInit, OnDestroy, AfterContentChecked {

this.Pool.ProgressMessage = 'Lade Change Log';

// await this.Pool.ReadChangelogliste(); // 1
await this.Pool.ReadChangelogliste(); // 1

this.Pool.CurrentProgressValue++;

Expand Down
23 changes: 18 additions & 5 deletions src/app/services/graph/graph.ts
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ import moment, {Moment} from "moment";
// import {DatabaseOutlookemailService} from "../database-email/database-outlookemail.service";
import {BasicsProvider} from "../basics/basics";
import {Outlookemailadressstruktur} from "../../dataclasses/outlookemailadressstruktur";
import {codeSharp} from "ionicons/icons";

@Injectable({
providedIn: 'root'
Expand Down Expand Up @@ -307,7 +308,6 @@ export class Graphservice {

return new Promise((resolve, reject) => {


if(token !== null) {

graphClient.api('/me').select('*').get().then((result: User) => {
Expand All @@ -318,6 +318,8 @@ export class Graphservice {

}).catch((error: GraphError) => {

console.log('Benutzer konnte nicht geladen werden.');

switch (error.code) {

case "InvalidAuthenticationToken":
Expand All @@ -336,12 +338,16 @@ export class Graphservice {
break;
}

reject(error);
console.log(error);

resolve(true);
});
}
else {

reject(false);
console.log('GetOwnUserinfo Token Error');

resolve(true);
}
});

Expand Down Expand Up @@ -1223,6 +1229,8 @@ export class Graphservice {

}).catch((error: GraphError) => {

console.log('Fehler beim Laden des Bildes.');

switch (error.statusCode) {

case 404: // Not found
Expand All @@ -1235,17 +1243,22 @@ export class Graphservice {

default:

this.UserimageSRC = null;

resolve(true);

debugger;

break;
}

reject(error);
});
}
else {

reject(false);
console.log('GetOwnUserimage Token error');

resolve(true);
}

});
Expand Down
2 changes: 1 addition & 1 deletion www/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,6 @@
<body>
<app-root></app-root>
<app-redirect></app-redirect>
<script src="runtime.79f787f4b19a062e.js" type="module"></script><script src="polyfills.7ff4c4c37cd47122.js" type="module"></script><script src="main.491a91b78bd820b1.js" type="module"></script></body>
<script src="runtime.79f787f4b19a062e.js" type="module"></script><script src="polyfills.7ff4c4c37cd47122.js" type="module"></script><script src="main.4ac356ff39458be2.js" type="module"></script></body>

</html>
1 change: 0 additions & 1 deletion www/main.491a91b78bd820b1.js

This file was deleted.

1 change: 1 addition & 0 deletions www/main.4ac356ff39458be2.js

Large diffs are not rendered by default.

0 comments on commit bba9cee

Please sign in to comment.