mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-27 13:47:58 +01:00
fix unintentional inactivation of local storage settings
This commit is contained in:
parent
44f2ebdbb6
commit
bdee305936
2 changed files with 2 additions and 2 deletions
|
@ -17,7 +17,7 @@ export function setupSettings() {
|
||||||
localCheckboxes.forEach(checkbox => {
|
localCheckboxes.forEach(checkbox => {
|
||||||
checkbox.checked = Boolean(store.get(checkbox.id));
|
checkbox.checked = Boolean(store.get(checkbox.id));
|
||||||
checkbox.addEventListener('change', () => {
|
checkbox.addEventListener('change', () => {
|
||||||
store.set(checkbox.id, checkbox.checked);
|
store.set(checkbox.id.replace('user_', ''), checkbox.checked);
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -266,7 +266,7 @@ defmodule Philomena.Galleries do
|
||||||
Repo.insert_all(
|
Repo.insert_all(
|
||||||
Interaction,
|
Interaction,
|
||||||
changes,
|
changes,
|
||||||
on_conflict: {:replace_all_except, [:id]},
|
on_conflict: {:replace, [:position]},
|
||||||
conflict_target: [:id]
|
conflict_target: [:id]
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue