Skip to content

Commit 58fc614

Browse files
committed
Do not ignore data-enable-help-for-making-changes attribute
1 parent 86b57b0 commit 58fc614

File tree

5 files changed

+7
-2
lines changed

5 files changed

+7
-2
lines changed

CHANGELOG.md

+3
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ This applies from version 0.5.0 onwards, as some versions before that have broke
1414
### Added
1515
### Changed
1616
### Fixed
17+
18+
- Fix bug: do not ignore the `data-enable-help-for-making-changes` attribute.
19+
1720
### Removed
1821

1922
## [1.8.4] - 2022-11-24

glossary.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ const app = Elm.ApplicationShell.init({
8282
glossaryItems: glossaryItems,
8383
editorIsRunning: editorIsRunning,
8484
enableHelpForMakingChanges: enableHelpForMakingChanges,
85-
enableSavingChangesInMemory: enableSavingChangesInMemory,
85+
enableSavingChangesInMemory: true || enableSavingChangesInMemory,
8686
enableMarkdownBasedSyntax: enableMarkdownBasedSyntax,
8787
}
8888
});

src/ApplicationShell.elm

+1
Original file line numberDiff line numberDiff line change
@@ -140,6 +140,7 @@ init flags =
140140
editorIsRunning
141141
(CommonModel
142142
filename
143+
enableHelpForMakingChanges
143144
enableSavingChangesInMemory
144145
CommonModel.Alphabetically
145146
Nothing

src/CommonModel.elm

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ type OrderItemsBy
1313

1414
type alias CommonModel =
1515
{ filename : Maybe String
16+
, enableHelpForMakingChanges : Bool
1617
, enableSavingChangesInMemory : Bool
1718
, orderItemsBy : OrderItemsBy
1819
, maybeIndex : Maybe GlossaryItemIndex

src/Pages/ListAll.elm

+1-1
Original file line numberDiff line numberDiff line change
@@ -1363,7 +1363,7 @@ view model =
13631363
[ text Components.Copy.sandboxModeMessage ]
13641364
]
13651365
, viewMakingChangesHelp model.common.filename noModalDialogShown_
1366-
|> Extras.Html.showIf (not model.common.enableSavingChangesInMemory)
1366+
|> Extras.Html.showIf (model.common.enableHelpForMakingChanges && not model.common.enableSavingChangesInMemory)
13671367
, h1
13681368
[ id ElementIds.title ]
13691369
[ text <| GlossaryTitle.toString title ]

0 commit comments

Comments
 (0)