-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[O2B-845] display original log when replying (#1223)
* add parent log text * modify height * revoke unfounded changes * add logDetailsButton * extend log component capabilities * extend logCreationModel * use common component to display parentLog in log replay page * refactor, rename, docs * docs * preserve replay content if returning with the same parentLogId * refactordocs * amend comparison condition * simplify condition * change if * add test * revoke unfound changes * improvement * rename * amend test * docs * docs * refactor * refactor * refactor * rename * refactor * rename * docs * replace abbreviation * refactor * put stronger condition in LogCreationModel#isReusable * rename * remove feature
- Loading branch information
Showing
8 changed files
with
153 additions
and
19 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
/** | ||
* @license | ||
* Copyright CERN and copyright holders of ALICE O2. This software is | ||
* distributed under the terms of the GNU General Public License v3 (GPL | ||
* Version 3), copied verbatim in the file "COPYING". | ||
* | ||
* See http://alice-o2.web.cern.ch/license for full licensing information. | ||
* | ||
* In applying this license CERN does not waive the privileges and immunities | ||
* granted to it by virtue of its status as an Intergovernmental Organization | ||
* or submit itself to any jurisdiction. | ||
*/ | ||
|
||
import { frontLink } from '../common/navigation/frontLink.js'; | ||
|
||
/** | ||
* Returns a reply to Log button. | ||
* | ||
* @param {Log} log the log to which reply is created | ||
* @return {Component} The reply button. | ||
*/ | ||
export const logDetailsButton = (log) => frontLink( | ||
'Details', | ||
'log-detail', | ||
{ id: log.id }, | ||
{ | ||
id: `details-of-${log.id}`, | ||
class: 'btn btn-primary', | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters