@appscode/design-system 2.17.73 → 2.17.75
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
|
@@ -20,18 +20,26 @@ const model = defineModel({ type: Boolean });
|
|
|
20
20
|
|
|
21
21
|
<template>
|
|
22
22
|
<div class="ac-switch is-flex is-align-items-center gap-8" :class="modifierClasses">
|
|
23
|
-
<
|
|
24
|
-
|
|
25
|
-
<
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
23
|
+
<div class="is-flex is-align-items-center gap-8">
|
|
24
|
+
<slot name="left" />
|
|
25
|
+
<label :for="id">{{ label }}</label>
|
|
26
|
+
<slot name="middle" />
|
|
27
|
+
</div>
|
|
28
|
+
|
|
29
|
+
<div class="is-flex is-align-items-center gap-8">
|
|
30
|
+
<label class="switch">
|
|
31
|
+
<input
|
|
32
|
+
v-model="model"
|
|
33
|
+
:id="id"
|
|
34
|
+
type="checkbox"
|
|
35
|
+
:name="name"
|
|
36
|
+
class="switch is-rounded is-primary"
|
|
37
|
+
:data-testid="dataTestId"
|
|
38
|
+
/>
|
|
39
|
+
<span class="slider round"></span>
|
|
40
|
+
</label>
|
|
41
|
+
<slot name="right" />
|
|
42
|
+
</div>
|
|
35
43
|
|
|
36
44
|
<p v-show="errorMsg" class="is-danger is-italic">
|
|
37
45
|
{{ errorMsg }}
|
|
@@ -9,6 +9,7 @@ export interface Props {
|
|
|
9
9
|
activeOrganization?: string;
|
|
10
10
|
rootDomain?: string;
|
|
11
11
|
activeOrgType?: number;
|
|
12
|
+
isOfflineInstaller?: boolean;
|
|
12
13
|
}
|
|
13
14
|
|
|
14
15
|
const props = withDefaults(defineProps<Props>(), {
|
|
@@ -17,6 +18,7 @@ const props = withDefaults(defineProps<Props>(), {
|
|
|
17
18
|
activeOrganization: "",
|
|
18
19
|
rootDomain: "",
|
|
19
20
|
activeOrgType: 0,
|
|
21
|
+
isOfflineInstaller: false,
|
|
20
22
|
});
|
|
21
23
|
|
|
22
24
|
const appList = [
|
|
@@ -116,8 +118,12 @@ const filteredAppList = appListWithUrl.filter((element) => {
|
|
|
116
118
|
if (element.name === props.currentApp) return false;
|
|
117
119
|
|
|
118
120
|
// remove billing selfhost & learn from selfhost mode
|
|
121
|
+
// but always keep billing when this is an offline installer
|
|
119
122
|
const selfHostList = ["billing", "selfhost", "learn"];
|
|
120
|
-
if (isSelfHosted.value && selfHostList.includes(element.name))
|
|
123
|
+
if (isSelfHosted.value && selfHostList.includes(element.name)) {
|
|
124
|
+
if (element.name === "billing" && props.isOfflineInstaller) return true;
|
|
125
|
+
return false;
|
|
126
|
+
}
|
|
121
127
|
|
|
122
128
|
return true;
|
|
123
129
|
});
|