Jelajahi Sumber

Portal: BrowseBrick: Primary action is now also displayed in the secondary actions menu

git-svn-id: http://svn.code.sf.net/p/itop/code/trunk@4727 a333f486-631f-4898-b8df-5754b55c2be0
glajarige 8 tahun lalu
induk
melakukan
c47165a074

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_grid.html.twig

@@ -246,9 +246,9 @@
 				
 				if(levelActionsKeys.length > 1)
 				{
-					// Retrieving secondary action
+					// Retrieving secondary action (Now we also display primary action)
 					var actionsButtons = {};
-					for(j = 1; j < levelActionsKeys.length; j++)
+					for(j = 0; j < levelActionsKeys.length; j++)
 					{
 						actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
 					}

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_list.html.twig

@@ -108,9 +108,9 @@
 							// - Secondary actions
 							if(levelActionsKeys.length > 1)
 							{
-								// Retrieving secondary action
+								// Retrieving secondary action (Now we also display primary action)
 								var actionsButtons = {};
-								for(j = 1; j < levelActionsKeys.length; j++)
+								for(j = 0; j < levelActionsKeys.length; j++)
 								{
 									actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
 								}

+ 2 - 2
datamodels/2.x/itop-portal-base/portal/src/views/bricks/browse/mode_tree.html.twig

@@ -244,9 +244,9 @@
 				
 				if(levelActionsKeys.length > 1)
 				{
-					// Retrieving secondary action
+					// Retrieving secondary action (Now we also display primary action)
 					var actionsButtons = {};
-					for(j = 1; j < levelActionsKeys.length; j++)
+					for(j = 0; j < levelActionsKeys.length; j++)
 					{
 						actionsButtons[levelActionsKeys[j]] = levelActions[levelActionsKeys[j]];
 					}