mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-30 23:08:00 +01:00
11 lines
374 B
JavaScript
11 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 };
|