Skip to content

Commit

Permalink
little fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
sei-jmattson committed Apr 1, 2023
1 parent 7899d03 commit 1c94272
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 5 deletions.
3 changes: 2 additions & 1 deletion projects/topomojo-work/src/app/config.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import { HttpClient } from '@angular/common/http';
import { UserManagerSettings } from 'oidc-client-ts';
import { catchError, tap } from 'rxjs/operators';
import { environment } from 'projects/topomojo-work/src/environments/environment';
import { Location, PlatformLocation } from '@angular/common';
import { Location } from '@angular/common';
import { MarkedOptions, MarkedRenderer } from 'ngx-markdown';
// import { MarkedRenderer, MarkedOptions } from 'ngx-markdown';

Expand Down Expand Up @@ -54,6 +54,7 @@ export class ConfigService {
private location: Location
) {
this.local = this.getLocal();
this.storageKey += `__${window.location.host}${this.location.prepareExternalUrl('')}`;
}

// use setting, or relative
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
<tbody>
<tr><td>Description</td><td><pre>{{template.description}}</pre></td></tr>
<tr><td>Networks</td><td>{{template.networks}}</td></tr>
<tr><td>Iso</td><td>{{template.iso.split('/').pop()}}</td></tr>
<tr><td>Iso</td><td>{{(template.iso || "").split('/').pop()}}</td></tr>
<tr><td>Guest Settings</td><td><pre>{{template.guestinfo}}</pre></td></tr>
<tr><td>Replicas</td><td>{{template.replicas}}</td></tr>
<tr><td>Access</td><td>{{template.isHidden ? 'Hidden' : 'Visible'}}</td></tr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ export class WorkspaceBrowserComponent implements OnInit {
this.workspaces = this.refresh$.pipe(
debounceTime(150),
// distinctUntilChanged(),
switchMap(() => this.api.list(this.search)),
switchMap(() => this.api.list({...this.search, filter: ['my']})),
tap(l => this.count = l.length)
);

Expand Down
2 changes: 0 additions & 2 deletions projects/topomojo-work/src/index.html
Original file line number Diff line number Diff line change
@@ -1,15 +1,13 @@
<!doctype html>
<html lang="en">
<head>
<!-- ##COMMIT## -->
<meta charset="utf-8">
<title>TopoMojo</title>
<base href="/">
<meta name="viewport" content="width=device-width, initial-scale=1">
<link rel="icon" type="image/x-icon" href="favicon.ico">
</head>
<body>
<script>const revision='##COMMIT##';</script>
<app-root></app-root>
</body>
</html>

0 comments on commit 1c94272

Please sign in to comment.