Skip to content
This repository has been archived by the owner on Dec 1, 2018. It is now read-only.

Commit

Permalink
update stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
Angel Daniel Munoz Gonzalez committed Jul 20, 2018
1 parent 4905199 commit 59dc138
Show file tree
Hide file tree
Showing 3 changed files with 17 additions and 11 deletions.
8 changes: 4 additions & 4 deletions src/pages/about.html
Original file line number Diff line number Diff line change
Expand Up @@ -24,10 +24,10 @@ <h4>Proposito del sitio</h4>
o en mis redes sociales:
<ul class="collection">
<li class="collection-item">
<a href="" target="_blank">Github</a>
<a href="https://github.com/AngelMunoz" target="_blank">Github</a>
</li>
<li class="collection-item">
<a href="" target="_blank">Twitter</a>
<a href="https://twitter.com/daniel_tuna" target="_blank">Twitter</a>
</li>
</ul>
</blockquote>
Expand Down Expand Up @@ -58,10 +58,10 @@ <h4>Site's Purpose</h4>
<a href="mailto:[email protected]" target="_blank">[email protected]</a>
<ul class="collection">
<li class="collection-item">
<a href="" target="_blank">Github</a>
<a href="https://github.com/AngelMunoz" target="_blank">Github</a>
</li>
<li class="collection-item">
<a href="" target="_blank">Twitter</a>
<a href="https://twitter.com/daniel_tuna" target="_blank">Twitter</a>
</li>
</ul>
</blockquote>
Expand Down
6 changes: 6 additions & 0 deletions src/pages/list-detail.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ export class ListDetail {
const item = await this.list.get(detail._id);
const $index = this.items.findIndex(i => i._id === detail._id);
this.items.splice($index, 1, item);
if (detail.done) {
await this.saveHidePrefs(this.hideDone);
}
} catch (error) {
console.warn(JSON.stringify(error));
return M.toast({
Expand All @@ -28,6 +31,9 @@ export class ListDetail {
await this.list.put(detail);
const item = await this.list.get(detail.name);
this.items.push(item);
if (detail.done) {
await this.saveHidePrefs(this.hideDone);
}
} catch (error) {
console.warn(JSON.stringify(error));
return M.toast({
Expand Down
14 changes: 7 additions & 7 deletions src/routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,13 @@ import { PLATFORM } from "aurelia-framework";
import { RouteConfig } from "aurelia-router";

export const ROUTES: RouteConfig[] = [
{
route: "my-lists",
title: "Mis Listas",
name: "lists",
nav: true,
moduleId: PLATFORM.moduleName("./pages/my-lists"),
},
{
route: ["", "home"],
title: "Inicio",
Expand All @@ -16,13 +23,6 @@ export const ROUTES: RouteConfig[] = [
nav: true,
moduleId: PLATFORM.moduleName("./pages/about"),
},
{
route: "my-lists",
title: "Mis Listas",
name: "lists",
nav: true,
moduleId: PLATFORM.moduleName("./pages/my-lists"),
},
{
route: "my-lists/:id",
title: "Mi Lista Detallada",
Expand Down

0 comments on commit 59dc138

Please sign in to comment.