mirror of
https://github.com/philomena-dev/philomena.git
synced 2024-12-18 06:57:59 +01:00
10 lines
341 B
JavaScript
10 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 };
|