@appscode/design-system 2.6.10-alpha-1 → 2.6.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@appscode/design-system",
3
- "version": "2.6.10-alpha-1",
3
+ "version": "2.6.10",
4
4
  "description": "A design system for Appscode websites and dashboards made using Bulma",
5
5
  "main": "main.scss",
6
6
  "scripts": {
@@ -65,7 +65,8 @@ const toggleList = () => {
65
65
  });
66
66
  };
67
67
 
68
- const onOrganizationClick = (orgName: string) => {
68
+ const onOrganizationClick = (orgName: string, idx: number) => {
69
+ if (idx === 0) return;
69
70
  dropdownItems.value?.$el.scrollTo(0, 0);
70
71
  emit("activeorg$set", orgName);
71
72
  handleIsActiveChange("");
@@ -181,7 +182,7 @@ function handleIsActiveChange(isActive: string) {
181
182
  :style="{ maxHeight: dropDownSectionHeight }"
182
183
  >
183
184
  <li v-for="(org, idx) in formattedOrganizations" :key="org.username">
184
- <a class="is-flex is-align-items-center" @click="onOrganizationClick(org.username)">
185
+ <a class="is-flex is-align-items-center" @click="onOrganizationClick(org.username, idx)">
185
186
  <div class="width-30 height-30 image">
186
187
  <img :src="org.avatar_url" class="ac-user-profile is-rounded" alt="icon" />
187
188
  </div>