mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
10 lines
374 B
JavaScript
10 lines
374 B
JavaScript
import { $ } from '../utils/dom';
|
|
|
|
function showOwnedComments() {
|
|
const editableComments = $('.js-editable-comments');
|
|
const editableCommentIds = editableComments && JSON.parse(editableComments.dataset.editable);
|
|
|
|
if (editableCommentIds) editableCommentIds.forEach(id => $(`#comment_${id} .owner-options`).classList.remove('hidden'));
|
|
}
|
|
|
|
export { showOwnedComments };
|