refactor(ujs): turbo use an id for turbo_stream.update id
not a class
This commit is contained in:
parent
b0aa777315
commit
7a9c5e8d19
4 changed files with 6 additions and 6 deletions
|
@ -3,11 +3,11 @@ import { show, hide } from '@utils';
|
|||
export function showFusion() {
|
||||
show(document.querySelector('.fusion'));
|
||||
hide(document.querySelector('.new-account'));
|
||||
hide(document.querySelector('.new-account-password-confirmation'));
|
||||
hide(document.querySelector('#new-account-password-confirmation'));
|
||||
}
|
||||
|
||||
export function showNewAccount() {
|
||||
hide(document.querySelector('.fusion'));
|
||||
show(document.querySelector('.new-account'));
|
||||
hide(document.querySelector('.new-account-password-confirmation'));
|
||||
hide(document.querySelector('#new-account-password-confirmation'));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue