mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 12:37:58 +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 };
|