mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/AbuseFilter.git
synced 2024-11-27 23:40:19 +00:00
Don't show export link for new filters
Bug: T230163 Change-Id: I72f46247f4323fb5bfe7fa74f332076dbd346187
This commit is contained in:
parent
c34181e548
commit
c8b5b9321c
|
@ -394,19 +394,19 @@ class AbuseFilterViewEdit extends AbuseFilterView {
|
|||
$history_display = new HtmlArmor( $this->msg( 'abusefilter-edit-viewhistory' )->parse() );
|
||||
$fields['abusefilter-edit-history'] =
|
||||
$this->linkRenderer->makeKnownLink( $this->getTitle( 'history/' . $filter ), $history_display );
|
||||
}
|
||||
|
||||
// Add export
|
||||
$exportText = FormatJson::encode( [ 'row' => $row, 'actions' => $actions ] );
|
||||
$tools .= Xml::tags( 'a', [ 'href' => '#', 'id' => 'mw-abusefilter-export-link' ],
|
||||
$this->msg( 'abusefilter-edit-export' )->parse() );
|
||||
$tools .=
|
||||
new OOUI\MultilineTextInputWidget( [
|
||||
'id' => 'mw-abusefilter-export',
|
||||
'readOnly' => true,
|
||||
'value' => $exportText,
|
||||
'rows' => 10
|
||||
] );
|
||||
// Add export
|
||||
$exportText = FormatJson::encode( [ 'row' => $row, 'actions' => $actions ] );
|
||||
$tools .= Xml::tags( 'a', [ 'href' => '#', 'id' => 'mw-abusefilter-export-link' ],
|
||||
$this->msg( 'abusefilter-edit-export' )->parse() );
|
||||
$tools .=
|
||||
new OOUI\MultilineTextInputWidget( [
|
||||
'id' => 'mw-abusefilter-export',
|
||||
'readOnly' => true,
|
||||
'value' => $exportText,
|
||||
'rows' => 10
|
||||
] );
|
||||
}
|
||||
|
||||
$fields['abusefilter-edit-tools'] = $tools;
|
||||
|
||||
|
|
Loading…
Reference in a new issue