File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -381,20 +381,13 @@ function canOpenProfile(profileId) {
381381function getProfileUrl (profileId ) {
382382 const bblock = profileBBlocks .value [profileId];
383383 if (! bblock) return undefined ;
384- if (bblockService .isShown (bblock)) {
385- return router .resolve ({ name: ' BuildingBlock' , params: { id: bblock .itemIdentifier } }).href ;
386- }
387- return bblock .documentation ? .[' bblocks-viewer' ]? .url ;
384+ return getBBlockUrl (bblock);
388385}
389386
390387function openProfile (profileId ) {
391388 const bblock = profileBBlocks .value [profileId];
392389 if (! bblock) return ;
393- if (bblockService .isShown (bblock)) {
394- router .push ({ name: ' BuildingBlock' , params: { id: bblock .itemIdentifier } });
395- } else if (bblock .documentation ? .[' bblocks-viewer' ]) {
396- window .open (bblock .documentation [' bblocks-viewer' ].url );
397- }
390+ openBBlock (bblock);
398391}
399392
400393const getMediaTypeLabel = (mt ) => {
Original file line number Diff line number Diff line change @@ -150,7 +150,6 @@ class BBlockService {
150150 }
151151 }
152152 if ( bblock . openAPIDocument ) {
153- console . log ( 'adding' , bblock . openAPIDocument )
154153 this . resourceMappings [ bblock . openAPIDocument ] = bblock . itemIdentifier ;
155154 if ( bblock . sourceOpenAPIDocument ) {
156155 this . resourceMappings [ bblock . sourceOpenAPIDocument ] = bblock . itemIdentifier ;
You can’t perform that action at this time.
0 commit comments