|
69 | 69 | <template v-if="blockLogType !== 'active'" #item-type="{ item }">
|
70 | 70 | {{ util.getBlockActionMessage( item ) }}
|
71 | 71 | </template>
|
72 |
| - <template v-if="blockLogType === 'active'" #item-target="{ item }"> |
73 |
| - <!-- eslint-disable-next-line vue/no-v-html --> |
74 |
| - <span v-html="$i18n( 'userlink-with-contribs', item ).parse()"></span> |
75 |
| - </template> |
76 | 72 | <template #item-expiry="{ item }">
|
77 | 73 | <span v-if="item.expires || item.duration">
|
78 | 74 | {{ util.formatTimestamp( item.expires || item.duration ) }}
|
@@ -150,15 +146,19 @@ module.exports = exports = defineComponent( {
|
150 | 146 | const columns = [
|
151 | 147 | ...( props.blockLogType === 'active' || props.canDeleteLogEntry ?
|
152 | 148 | [ { id: props.blockLogType === 'active' ? 'modify' : 'hide', label: '', minWidth: '100px' } ] : [] ),
|
153 |
| - { id: 'timestamp', label: mw.message( 'blocklist-timestamp' ).text(), minWidth: '112px' }, |
154 |
| - props.blockLogType === 'recent' || props.blockLogType === 'suppress' ? |
155 |
| - { id: 'type', label: mw.message( 'blocklist-type-header' ).text(), minWidth: '112px' } : |
156 |
| - { id: 'target', label: mw.message( 'blocklist-target' ).text(), minWidth: '200px' }, |
| 149 | + { id: 'timestamp', label: mw.message( 'blocklist-timestamp' ).text(), minWidth: '112px' } |
| 150 | + ]; |
| 151 | + if ( props.blockLogType === 'recent' || props.blockLogType === 'suppress' ) { |
| 152 | + columns.push( |
| 153 | + { id: 'type', label: mw.message( 'blocklist-type-header' ).text(), minWidth: '112px' } |
| 154 | + ); |
| 155 | + } |
| 156 | + columns.push( |
157 | 157 | { id: 'expiry', label: mw.message( 'blocklist-expiry' ).text(), minWidth: '112px' },
|
158 | 158 | { id: 'blockedby', label: mw.message( 'blocklist-by' ).text(), minWidth: '200px' },
|
159 | 159 | { id: 'parameters', label: mw.message( 'blocklist-params' ).text(), minWidth: '160px' },
|
160 | 160 | { id: 'reason', label: mw.message( 'blocklist-reason' ).text(), minWidth: '160px' }
|
161 |
| - ]; |
| 161 | + ); |
162 | 162 |
|
163 | 163 | const logEntries = ref( [] );
|
164 | 164 | const moreBlocks = ref( false );
|
|
0 commit comments