mirror of
https://github.com/Combodo/iTop.git
synced 2026-04-30 05:58:46 +02:00
N°5074 - Linkset datatable actions row improvements
Linkset updates, feedbacks 09/12: - Distinguish action label and tool tip message - Change default action button label Ok => Confirm - Use action label in place of default confirm button label - Attach do not show again preference key to table instance - Obsolescence flag for link selection (select all) issue correction
This commit is contained in:
@@ -44,7 +44,7 @@ class BlockIndirectLinksViewTable extends AbstractBlockLinksViewTable
|
||||
'view_link' => false,
|
||||
'menu' => false,
|
||||
'display_limit' => true,
|
||||
'table_id' => $this->sObjectClass.'_'.$this->sAttCode,
|
||||
'table_id' => $this->GetTableId(),
|
||||
'zlist' => false,
|
||||
'extra_fields' => $this->GetAttCodesToDisplay(),
|
||||
'row_actions' => $this->GetRowActions(),
|
||||
@@ -59,13 +59,14 @@ class BlockIndirectLinksViewTable extends AbstractBlockLinksViewTable
|
||||
if (!$this->oAttDef->GetReadOnly()) {
|
||||
|
||||
$aRowActions[] = array(
|
||||
'tooltip' => 'UI:Links:ActionRow:detach',
|
||||
'label' => 'UI:Links:ActionRow:Detach',
|
||||
'tooltip' => 'UI:Links:ActionRow:Detach+',
|
||||
'icon_classes' => 'fas fa-minus',
|
||||
'js_row_action' => "LinkSetWorker.DeleteLinkedObject('{$this->oAttDef->GetLinkedClass()}', aRowData['Link/_key_/raw']);",
|
||||
'confirmation' => [
|
||||
'message' => 'UI:Links:ActionRow:detach:confirmation',
|
||||
'message' => 'UI:Links:ActionRow:Detach:Confirmation',
|
||||
'message_row_data' => "Remote/hyperlink",
|
||||
'do_not_show_again_pref_key' => 'LinkSetWorker.DetachLinkedObject',
|
||||
'do_not_show_again_pref_key' => $this->GetDoNotShowAgainPreferenceKey(),
|
||||
],
|
||||
);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user