mirror of
https://gitlab.com/bignutty/labscore.git
synced 2025-06-08 06:03:04 -04:00
[nextgen/cardstack] big improvements
- Implement return types - page numbers - better subpage resolve delay - error handling and system error cards - code cleanup
This commit is contained in:
parent
7e850e5b5d
commit
18bd28591c
6 changed files with 249 additions and 125 deletions
|
@ -148,6 +148,12 @@ module.exports.createEmbed = function(type, context, content){
|
|||
}
|
||||
|
||||
// Adds formatted page numbers to the embed footer
|
||||
/**
|
||||
* Formats embeds for pagination.
|
||||
* @deprecated No longer necessary in DynamicCardStack.
|
||||
* @param embeds Array of Messages
|
||||
* @returns {Embed[]}
|
||||
*/
|
||||
module.exports.formatPaginationEmbeds = function(embeds){
|
||||
// No formatting if we only have one page
|
||||
if(embeds.length == 1) return embeds;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue