修复discussion模块

This commit is contained in:
undefined committed 2020-05-01 18:43:40 +08:00
1 parent 2554cf660a
commit 33e277f28f
30 files changed
+2460 -187

No files matched your search

@@ -16,7 +16,7 @@ function renderItem(user) {
return tpl`
<div class="media">
<div class="media__left medium">
<img class="small user-profile-avatar" src="${user.gravatar}" width="30" height="30">
<img class="small user-profile-avatar" src="${user.gravatar_url}" width="30" height="30">
</div>
<div class="media__body medium">
<div class="user-select__uname">${user.uname}</div>
+3 -3
View File
@@ -60,7 +60,7 @@ const page = new NamedPage('domain_manage_user', () => {
const role = addUserDialog.$dom.find('[name="role"]').val();
try {
await request.post('', {
operation: 'add_user',
operation: 'set_user',
uid: user._id,
role,
});
@@ -90,8 +90,8 @@ const page = new NamedPage('domain_manage_user', () => {
const action = await new ConfirmDialog({
$body: tpl`
<div class="typo">
<p>${i18n('Confirm removing the selected users from this domain?')}</p>
<p>${i18n('Their account will not be deleted and they will be with the default role when visiting this domain.')}</p>
<p>${i18n('Confirm removing the selected users?')}</p>
<p>${i18n('Their account will not be deleted and they will be with the default role.')}</p>
</div>`,
}).open();
if (action !== 'yes') {