mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 23:39:50 -04:00
bug fix in update current saved page, minor renaming
This commit is contained in:
parent
c66cdfb447
commit
b542da787b
@ -35,14 +35,14 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C
|
|||||||
- Merge if contains
|
- Merge if contains
|
||||||
- Page Admin \*\*
|
- Page Admin \*\*
|
||||||
- Delete Page
|
- Delete Page
|
||||||
- Show page and list of card titles
|
- Show pages and list of card titles for each page in expansion panel
|
||||||
- Remove card from page
|
- Remove card from page
|
||||||
- Make page public (private edit only)
|
- Make page public (private edit only) [available only when logged in]
|
||||||
- Notes Admin \*\*
|
- Notes Admin \*\*
|
||||||
- Edit Note
|
- List notes by title
|
||||||
- Delete Note
|
- Edit Note
|
||||||
|
- Delete Note
|
||||||
- Create Note
|
- Create Note
|
||||||
- Note: Add Cross References
|
|
||||||
- Note: Auto link passages using markdown link syntax
|
- Note: Auto link passages using markdown link syntax
|
||||||
- Passage
|
- Passage
|
||||||
- Show Note Cross References \*\*
|
- Show Note Cross References \*\*
|
||||||
@ -53,3 +53,5 @@ To get more help on the Angular CLI use `ng help` or go check out the [Angular C
|
|||||||
- Merge saved pages lists when unlogged in -> login
|
- Merge saved pages lists when unlogged in -> login
|
||||||
- Incorporate Jacob's Geo Work
|
- Incorporate Jacob's Geo Work
|
||||||
- Android and IOS mobile apps with Ionic Capactor
|
- Android and IOS mobile apps with Ionic Capactor
|
||||||
|
- Test note persistence
|
||||||
|
- Test note search
|
||||||
|
@ -91,7 +91,7 @@ export class SettingsComponent extends SubscriberComponent {
|
|||||||
.subscribe((ds: OkCancelResult) => {
|
.subscribe((ds: OkCancelResult) => {
|
||||||
console.log(ds);
|
console.log(ds);
|
||||||
if (ds.ok) {
|
if (ds.ok) {
|
||||||
this.appService.updateSavedPage();
|
this.appService.updateCurrentSavedPage();
|
||||||
this.navService.closeSettings();
|
this.navService.closeSettings();
|
||||||
this.snackBar.open(`${page.title} has been updated!`, '', {
|
this.snackBar.open(`${page.title} has been updated!`, '', {
|
||||||
duration: 3 * 1000,
|
duration: 3 * 1000,
|
||||||
|
@ -237,7 +237,7 @@ function reducer(state: AppState, action: AppAction): AppState {
|
|||||||
}
|
}
|
||||||
case 'UPDATE_CURRENT_PAGE': {
|
case 'UPDATE_CURRENT_PAGE': {
|
||||||
const savedPages = new Storable<SavedPage[]>([
|
const savedPages = new Storable<SavedPage[]>([
|
||||||
...state.savedPages.value.filter((o) => o.id === state.currentSavedPage.id),
|
...state.savedPages.value.filter((o) => o.id !== state.currentSavedPage.id),
|
||||||
{
|
{
|
||||||
id: state.currentSavedPage.id,
|
id: state.currentSavedPage.id,
|
||||||
title: state.currentSavedPage.title,
|
title: state.currentSavedPage.title,
|
||||||
@ -543,7 +543,7 @@ export class AppService extends createStateService(reducer, initialState) {
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
updateSavedPage() {
|
updateCurrentSavedPage() {
|
||||||
this.dispatch({
|
this.dispatch({
|
||||||
type: 'UPDATE_CURRENT_PAGE',
|
type: 'UPDATE_CURRENT_PAGE',
|
||||||
});
|
});
|
||||||
|
Loading…
x
Reference in New Issue
Block a user