@appscode/design-system 2.6.12-modal → 2.6.13
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
|
@@ -10,10 +10,18 @@ withDefaults(
|
|
|
10
10
|
defineProps<{
|
|
11
11
|
statusArray?: Array<Status>;
|
|
12
12
|
isModalOpen?: boolean;
|
|
13
|
+
title?: string;
|
|
14
|
+
ignoreOutsideClick?: boolean;
|
|
15
|
+
hideActionFooter?: boolean;
|
|
16
|
+
modifierClasses?: string;
|
|
13
17
|
}>(),
|
|
14
18
|
{
|
|
15
19
|
statusArray: () => [],
|
|
16
20
|
isModalOpen: false,
|
|
21
|
+
title: "Status",
|
|
22
|
+
ignoreOutsideClick: true,
|
|
23
|
+
hideActionFooter: false,
|
|
24
|
+
modifierClasses: "is-large",
|
|
17
25
|
},
|
|
18
26
|
);
|
|
19
27
|
defineEmits(["update:isModalOpen"]);
|
|
@@ -25,10 +33,10 @@ const AcButton = defineAsyncComponent(() => import("@appscode/design-system/vue-
|
|
|
25
33
|
<template>
|
|
26
34
|
<modal
|
|
27
35
|
:open="isModalOpen"
|
|
28
|
-
title="
|
|
29
|
-
:ignore-outside-click="
|
|
30
|
-
:hide-action-footer="
|
|
31
|
-
:modifier-classes="
|
|
36
|
+
:title="title"
|
|
37
|
+
:ignore-outside-click="ignoreOutsideClick"
|
|
38
|
+
:hide-action-footer="hideActionFooter"
|
|
39
|
+
:modifier-classes="modifierClasses"
|
|
32
40
|
@closemodal="$emit('update:isModalOpen', false)"
|
|
33
41
|
>
|
|
34
42
|
<div v-for="(status, idx) in statusArray" :key="idx" :class="['message', `is-${status.type}`]">
|
|
@@ -21,6 +21,7 @@ interface Props {
|
|
|
21
21
|
showThemeMode?: boolean;
|
|
22
22
|
isPlatformDomain?: boolean;
|
|
23
23
|
isLoggedinUserAdmin?: boolean;
|
|
24
|
+
isClientOrgUser?: boolean;
|
|
24
25
|
}
|
|
25
26
|
|
|
26
27
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -31,6 +32,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
31
32
|
showThemeMode: false,
|
|
32
33
|
isPlatformDomain: false,
|
|
33
34
|
isLoggedinUserAdmin: false,
|
|
35
|
+
isClientOrgUser: false,
|
|
34
36
|
});
|
|
35
37
|
|
|
36
38
|
const emit = defineEmits(["set:theme", "on-logout", "activeorg$set"]);
|
|
@@ -136,7 +138,7 @@ function handleIsActiveChange(isActive: string) {
|
|
|
136
138
|
</div>
|
|
137
139
|
</a>
|
|
138
140
|
<transition-group name="list" tag="ul" class="list-items ac-scrollbar py-2">
|
|
139
|
-
<li key="settings" v-if="!isPlatformDomain || isDocsUi">
|
|
141
|
+
<li key="settings" v-if="(!isPlatformDomain || isDocsUi) && !isClientOrgUser">
|
|
140
142
|
<a
|
|
141
143
|
v-if="user.isPersonalAccount"
|
|
142
144
|
data-testid="user-settings-link"
|
|
@@ -151,7 +153,7 @@ function handleIsActiveChange(isActive: string) {
|
|
|
151
153
|
<span class="icon"> <HeroiconsCog6Tooth /> </span><span>Settings</span>
|
|
152
154
|
</a>
|
|
153
155
|
</li>
|
|
154
|
-
<li key="settings-platform" v-else>
|
|
156
|
+
<li key="settings-platform" v-else-if="!isClientOrgUser">
|
|
155
157
|
<NuxtLink v-if="user.isPersonalAccount" data-testid="user-settings-link" to="/user/settings/">
|
|
156
158
|
<span class="icon">
|
|
157
159
|
<HeroiconsCog6Tooth />
|