mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-11-24 20:37:59 +01:00
11 lines
341 B
JavaScript
11 lines
341 B
JavaScript
|
import { $ } from '../utils/dom';
|
||
|
|
||
|
function showOwnedPosts() {
|
||
|
const editablePost = $('.js-editable-posts');
|
||
|
const editablePostIds = editablePost && JSON.parse(editablePost.dataset.editable);
|
||
|
|
||
|
if (editablePostIds) editablePostIds.forEach(id => $(`#post_${id} .owner-options`).classList.remove('hidden'));
|
||
|
}
|
||
|
|
||
|
export { showOwnedPosts };
|