bug fixes and cosmetic improvements

This commit is contained in:
Matt Hill
2021-09-01 14:45:16 -06:00
committed by Aiden McClelland
parent aef1569e56
commit be5952cb67
21 changed files with 147 additions and 118 deletions

View File

@@ -61,6 +61,7 @@ export class AppActionsPage {
handler: (value: any) => {
return this.executeAction(pkg.manifest.id, action.key, value)
},
isSubmit: true,
},
],
},

View File

@@ -6,6 +6,7 @@ import { PackageDataEntry, PackageState } from 'src/app/services/patch-db/data-m
import { Subscription } from 'rxjs'
import { PkgStatusRendering, renderPkgStatus } from 'src/app/services/pkg-status-rendering.service'
import { filter } from 'rxjs/operators'
import { isEmptyObject } from 'src/app/util/misc.util'
@Component({
selector: 'app-list',
@@ -38,7 +39,11 @@ export class AppListPage {
this.patch.watch$('package-data')
.pipe(
filter(obj => {
return Object.keys(obj).length !== Object.keys(this.pkgs).length
return obj &&
(
isEmptyObject(obj) ||
Object.keys(obj).length !== Object.keys(this.pkgs).length
)
}),
)
.subscribe(pkgs => {

View File

@@ -1,6 +1,6 @@
<ion-content>
<ion-grid style="height: 100%; max-width: 540px;">
<ion-row class="ion-align-items-center" style="height: 100%;">
<ion-row class="ion-align-items-center" style="height: 90%;">
<ion-col class="ion-text-center">
<div style="padding-bottom: 16px;">

View File

@@ -7,16 +7,20 @@
</ion-header>
<ion-content class="ion-padding">
<h1 style="font-family: 'Montserrat'; font-weight: 100px; margin: 32px 0;" class="ion-text-center">Embassy Marketplace</h1>
<h1 style="font-family: 'Montserrat'; font-size: 42px; margin: 32px 0;" class="ion-text-center">Embassy Marketplace</h1>
<ion-toolbar style="padding-bottom: 32px; max-width: 600px;" color="transparent">
<ion-searchbar color="dark" (keyup.enter)="search()" debounce="300" [(ngModel)]="query"></ion-searchbar>
<ion-buttons slot="end">
<ion-button color="primary" fill="solid" (click)="search()">
<ion-icon slot="icon-only" name="search-outline"></ion-icon>
</ion-button>
</ion-buttons>
</ion-toolbar>
<ion-grid style="padding-bottom: 32px;">
<ion-row>
<ion-col sizeMd="6" offset-md="3">
<ion-toolbar color="transparent">
<ion-searchbar enterkeyhint="search" color="dark" (keyup.enter)="search()" debounce="300" [(ngModel)]="query"></ion-searchbar>
<ion-button style="height: 42px;" slot="end" color="primary" fill="solid" (click)="search()">
<ion-icon slot="icon-only" name="search-outline"></ion-icon>
</ion-button>
</ion-toolbar>
</ion-col>
</ion-row>
</ion-grid>
<!-- page loading -->
<ng-container *ngIf="pageLoading; else pageLoaded">

View File

@@ -21,6 +21,7 @@
.selected {
font-weight: bold;
font-size: 17px;
}
.dim {

View File

@@ -85,7 +85,7 @@ export class WifiPage {
spec: wifiSpec.spec,
buttons: [
{
text: 'Save',
text: 'Save for Later',
handler: async (value: { ssid: string, password: string }) => {
await this.save(value.ssid, value.password)
},