@appscode/design-system 1.0.43-alpha.136 → 1.0.43-alpha.139
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/components/_dashboard-header.scss +1 -1
- package/package.json +1 -1
- package/vue-components/v2/editor/FilteredFileEditor.vue +7 -1
- package/vue-components/v2/navbar/User.vue +1 -1
- package/vue-components/v2/table/Table.vue +11 -0
- package/vue-components/v3/navbar/User.vue +1 -1
- package/vue-components/v3/table/Table.vue +11 -0
package/package.json
CHANGED
|
@@ -34,7 +34,7 @@
|
|
|
34
34
|
<editor
|
|
35
35
|
v-else-if="!isPreviewLoading && !hideValue"
|
|
36
36
|
v-model="activeFile.content"
|
|
37
|
-
:original-value="
|
|
37
|
+
:original-value="originalValue"
|
|
38
38
|
:language="activeFile.format"
|
|
39
39
|
:read-only="isEditorReadOnly"
|
|
40
40
|
:editor-height="editorHeight"
|
|
@@ -107,6 +107,12 @@ export default {
|
|
|
107
107
|
);
|
|
108
108
|
return activeFile || { content: "", format: "yaml" };
|
|
109
109
|
},
|
|
110
|
+
originalValue(){
|
|
111
|
+
const activeFile = this.filteredYamls.find(
|
|
112
|
+
element => element.uid === this.activeKey
|
|
113
|
+
);
|
|
114
|
+
return (activeFile && activeFile.initContent) || "";
|
|
115
|
+
},
|
|
110
116
|
filteredYamls() {
|
|
111
117
|
if (this.searchText) {
|
|
112
118
|
return this.previewYamls.filter(
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</button>
|
|
10
10
|
<navbar-item-content class="navbar-dropdown-wrapper">
|
|
11
|
-
<div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave">
|
|
11
|
+
<div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave()">
|
|
12
12
|
<div class="profile-area">
|
|
13
13
|
<div class="profile-photo">
|
|
14
14
|
<img :src="user.avatar_url" alt="User Photo" class="width-50 height-50" />
|
|
@@ -47,6 +47,17 @@
|
|
|
47
47
|
"
|
|
48
48
|
>
|
|
49
49
|
{{ headerLabels[idx] }}
|
|
50
|
+
<span
|
|
51
|
+
v-if="
|
|
52
|
+
tableHeader.dashboard &&
|
|
53
|
+
tableHeader.dashboard.status &&
|
|
54
|
+
tableHeader.dashboard.status !== 'Success'
|
|
55
|
+
"
|
|
56
|
+
class="icon has-text-danger"
|
|
57
|
+
:title="tableHeader.dashboard && tableHeader.dashboard.message"
|
|
58
|
+
>
|
|
59
|
+
<i class="fa fa-exclamation-triangle" />
|
|
60
|
+
</span>
|
|
50
61
|
</th>
|
|
51
62
|
<th
|
|
52
63
|
ref="action-section"
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
</div>
|
|
9
9
|
</button>
|
|
10
10
|
<navbar-item-content class="navbar-dropdown-wrapper">
|
|
11
|
-
<div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave">
|
|
11
|
+
<div v-if="user.username" class="user-profile-wrapper" @mouseleave="onMouseLeave()">
|
|
12
12
|
<div class="profile-area">
|
|
13
13
|
<div class="profile-photo">
|
|
14
14
|
<img :src="user.avatar_url" alt="User Photo" class="width-50 height-50" />
|
|
@@ -41,6 +41,17 @@
|
|
|
41
41
|
@click.prevent="headerSortables[idx].enabled && emitSortEvent(idx)"
|
|
42
42
|
>
|
|
43
43
|
{{ headerLabels[idx] }}
|
|
44
|
+
<span
|
|
45
|
+
v-if="
|
|
46
|
+
tableHeader.dashboard &&
|
|
47
|
+
tableHeader.dashboard.status &&
|
|
48
|
+
tableHeader.dashboard.status !== 'Success'
|
|
49
|
+
"
|
|
50
|
+
:title="tableHeader.dashboard && tableHeader.dashboard.message"
|
|
51
|
+
class="icon has-text-danger"
|
|
52
|
+
>
|
|
53
|
+
<i class="fa fa-exclamation-triangle" />
|
|
54
|
+
</span>
|
|
44
55
|
</th>
|
|
45
56
|
<th
|
|
46
57
|
ref="action-section"
|