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

Commit 59dc138

Browse files
author
Angel Daniel Munoz Gonzalez
committed
update stuff
1 parent 4905199 commit 59dc138

File tree

3 files changed

+17
-11
lines changed

3 files changed

+17
-11
lines changed

src/pages/about.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,10 +24,10 @@ <h4>Proposito del sitio</h4>
2424
o en mis redes sociales:
2525
<ul class="collection">
2626
<li class="collection-item">
27-
<a href="" target="_blank">Github</a>
27+
<a href="https://github.com/AngelMunoz" target="_blank">Github</a>
2828
</li>
2929
<li class="collection-item">
30-
<a href="" target="_blank">Twitter</a>
30+
<a href="https://twitter.com/daniel_tuna" target="_blank">Twitter</a>
3131
</li>
3232
</ul>
3333
</blockquote>
@@ -58,10 +58,10 @@ <h4>Site's Purpose</h4>
5858
<a href="mailto:scythes.lol@gmail.com" target="_blank">scythes.lol@gmail.com</a>
5959
<ul class="collection">
6060
<li class="collection-item">
61-
<a href="" target="_blank">Github</a>
61+
<a href="https://github.com/AngelMunoz" target="_blank">Github</a>
6262
</li>
6363
<li class="collection-item">
64-
<a href="" target="_blank">Twitter</a>
64+
<a href="https://twitter.com/daniel_tuna" target="_blank">Twitter</a>
6565
</li>
6666
</ul>
6767
</blockquote>

src/pages/list-detail.ts

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,9 @@ export class ListDetail {
1313
const item = await this.list.get(detail._id);
1414
const $index = this.items.findIndex(i => i._id === detail._id);
1515
this.items.splice($index, 1, item);
16+
if (detail.done) {
17+
await this.saveHidePrefs(this.hideDone);
18+
}
1619
} catch (error) {
1720
console.warn(JSON.stringify(error));
1821
return M.toast({
@@ -28,6 +31,9 @@ export class ListDetail {
2831
await this.list.put(detail);
2932
const item = await this.list.get(detail.name);
3033
this.items.push(item);
34+
if (detail.done) {
35+
await this.saveHidePrefs(this.hideDone);
36+
}
3137
} catch (error) {
3238
console.warn(JSON.stringify(error));
3339
return M.toast({

src/routes.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@ import { PLATFORM } from "aurelia-framework";
22
import { RouteConfig } from "aurelia-router";
33

44
export const ROUTES: RouteConfig[] = [
5+
{
6+
route: "my-lists",
7+
title: "Mis Listas",
8+
name: "lists",
9+
nav: true,
10+
moduleId: PLATFORM.moduleName("./pages/my-lists"),
11+
},
512
{
613
route: ["", "home"],
714
title: "Inicio",
@@ -16,13 +23,6 @@ export const ROUTES: RouteConfig[] = [
1623
nav: true,
1724
moduleId: PLATFORM.moduleName("./pages/about"),
1825
},
19-
{
20-
route: "my-lists",
21-
title: "Mis Listas",
22-
name: "lists",
23-
nav: true,
24-
moduleId: PLATFORM.moduleName("./pages/my-lists"),
25-
},
2626
{
2727
route: "my-lists/:id",
2828
title: "Mi Lista Detallada",

0 commit comments

Comments
 (0)