Make sharing options more obvious
This commit is contained in:
parent
3fca4a75d0
commit
4ac3483f1a
|
@ -4,4 +4,13 @@ export default function optionsEntryHandler(event: Event): void {
|
||||||
|
|
||||||
const options = document.querySelector(`#ib-options-${inboxId}`);
|
const options = document.querySelector(`#ib-options-${inboxId}`);
|
||||||
options.classList.toggle('d-none');
|
options.classList.toggle('d-none');
|
||||||
}
|
|
||||||
|
const buttonIcon = button.getElementsByTagName('i')[0];
|
||||||
|
if (buttonIcon.classList.contains('fa-chevron-down')) {
|
||||||
|
buttonIcon.classList.remove('fa-chevron-down');
|
||||||
|
buttonIcon.classList.add('fa-chevron-up');
|
||||||
|
} else {
|
||||||
|
buttonIcon.classList.remove('fa-chevron-up');
|
||||||
|
buttonIcon.classList.add('fa-chevron-down');
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
|
@ -30,8 +30,8 @@
|
||||||
%button.btn.btn-danger{ name: "ib-destroy", data: { ib_id: i.id } }
|
%button.btn.btn-danger{ name: "ib-destroy", data: { ib_id: i.id } }
|
||||||
= t("voc.delete")
|
= t("voc.delete")
|
||||||
%button.btn.btn-default{ name: "ib-options", data: { ib_id: i.id, state: :hidden } }
|
%button.btn.btn-default{ name: "ib-options", data: { ib_id: i.id, state: :hidden } }
|
||||||
%i.fa.fa-cog
|
%i.fa.fa-chevron-down
|
||||||
%span.visually-hidden= t(".options")
|
%span.pe-none= t(".options")
|
||||||
.card-footer.d-none{ id: "ib-options-#{i.id}" }
|
.card-footer.d-none{ id: "ib-options-#{i.id}" }
|
||||||
%h4= t(".sharing.heading")
|
%h4= t(".sharing.heading")
|
||||||
- if current_user.services.count.positive?
|
- if current_user.services.count.positive?
|
||||||
|
|
|
@ -211,7 +211,7 @@ en:
|
||||||
answers:
|
answers:
|
||||||
one: "1 answer"
|
one: "1 answer"
|
||||||
other: "%{count} answers"
|
other: "%{count} answers"
|
||||||
options: "Options"
|
options: "Sharing Options"
|
||||||
placeholder: "Write your answer here…"
|
placeholder: "Write your answer here…"
|
||||||
sharing:
|
sharing:
|
||||||
heading: "Sharing"
|
heading: "Sharing"
|
||||||
|
|
Loading…
Reference in New Issue