mirror of
https://gitlab.com/walljm/dynamicbible.git
synced 2025-07-23 07:19: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
|
||||
- Page Admin \*\*
|
||||
- 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
|
||||
- Make page public (private edit only)
|
||||
- Make page public (private edit only) [available only when logged in]
|
||||
- Notes Admin \*\*
|
||||
- Edit Note
|
||||
- Delete Note
|
||||
- List notes by title
|
||||
- Edit Note
|
||||
- Delete Note
|
||||
- Create Note
|
||||
- Note: Add Cross References
|
||||
- Note: Auto link passages using markdown link syntax
|
||||
- Passage
|
||||
- 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
|
||||
- Incorporate Jacob's Geo Work
|
||||
- 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) => {
|
||||
console.log(ds);
|
||||
if (ds.ok) {
|
||||
this.appService.updateSavedPage();
|
||||
this.appService.updateCurrentSavedPage();
|
||||
this.navService.closeSettings();
|
||||
this.snackBar.open(`${page.title} has been updated!`, '', {
|
||||
duration: 3 * 1000,
|
||||
|
@ -237,7 +237,7 @@ function reducer(state: AppState, action: AppAction): AppState {
|
||||
}
|
||||
case 'UPDATE_CURRENT_PAGE': {
|
||||
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,
|
||||
title: state.currentSavedPage.title,
|
||||
@ -543,7 +543,7 @@ export class AppService extends createStateService(reducer, initialState) {
|
||||
});
|
||||
}
|
||||
|
||||
updateSavedPage() {
|
||||
updateCurrentSavedPage() {
|
||||
this.dispatch({
|
||||
type: 'UPDATE_CURRENT_PAGE',
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user